Hi everyone,
I'm working on a series of tutorials in C/C++ that I'm wanting to convert to Pascal. Unfortunately, my Pascal was never that great, and I never had a need to do something like this before. I'm working with SDL (and JEDI-SDL for Pascal), and the SDL_GetKeyState function returns a PUint8/Uint8*.

In C, this works out fine--you get the pointer and access the individual keys as an array using the SDL key codes as the indexer:

Code:
Uint8* keys;

keys = SDL_GetKeyState(NULL);
if (keys[SDLK_UP]){
...
Of course, a straight Pascal translation won't cut it; it says that an array type is needed when you try keys[SDLK_UP] (or whatever key code). I know this is because arrays and pointers are pretty much the same thing, and it isn't the same story in Pascal.

I'm really wanting to use (at least roughly) this same train of thought for the Pascal versions of the tutorials. Anyone have any suggestions?

As kind of a PS, is JEDI still even active? The last update was last May...