Simple joystick support. Should be made configurable and all the gp2x buttons could be used as shortcuts.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@463 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-01-05 22:00:23 +00:00
parent 132eabcde5
commit 8c0475c43e
3 changed files with 195 additions and 3 deletions

4
main.c
View File

@@ -341,7 +341,9 @@ void Initialisation_du_programme(int argc,char * argv[])
Brouillon_Loupe_Decalage_Y=0;
// SDL
SDL_Init(SDL_INIT_TIMER|SDL_INIT_VIDEO);
SDL_Init(SDL_INIT_TIMER|SDL_INIT_VIDEO|SDL_INIT_JOYSTICK);
joystick = SDL_JoystickOpen(0);
SDL_EnableKeyRepeat(250, 32);
SDL_EnableUNICODE(SDL_ENABLE);
SDL_WM_SetCaption("GrafX2 beta "POURCENTAGE_VERSION" - USE AT YOUR OWN RISK","GrafX2");