Hi. Im compiling a prog using jedi-sdl and compiling it with freepascal.
this is the code:

keystate : PUint8;
begin
keystate := SDL_GetKeystate(nil);
SDL_PumpEvents();

if (keystate[SDLK_q] <> 0) then { error here: array type required}
exit;
.....
....

but it doesnt compile. The compiler tells this:
Array type required.

In C it was so easy as this, but in Pascal it doesnt work.
Thanks for any help.