Quote Originally Posted by savage
Paul, should those VK_* constants be included in sdl.pas? If I moved them there, inside a GP2X IFDEF, would that be ok? Also should they follow some kind of SDL naming convention? possibly SDLK_*?
Hi :-)
Putting the GP2X keys into the SDL sounds like a good idea :-)

I have renamed them for you already to make them more readable as well as more SDL-like.

SDLK_GP2X_UP = 0;
SDLK_GP2X_UPLEFT = 1;
SDLK_GP2X_LEFT = 2;
SDLK_GP2X_DOWNLEFT = 3;
SDLK_GP2X_DOWN = 4;
SDLK_GP2X_DOWNRIGHT = 5;
SDLK_GP2X_RIGHT = 6;
SDLK_GP2X_UPRIGHT = 7;
SDLK_GP2X_START = 8;
SDLK_GP2X_SELECT = 9;
SDLK_GP2X_L = 10;
SDLK_GP2X_R = 11;
SDLK_GP2X_A = 12;
SDLK_GP2X_B = 13;
SDLK_GP2X_Y = 14;
SDLK_GP2X_X = 15;
SDLK_GP2X_VOLUP = 16;
SDLK_GP2X_VOLDOWN = 17;
SDLK_GP2X_CLICK = 18;

I think those names are better than what I had...more clear.

cheers,
Paul.