Nothing major, just need to get this out of the way so I can carry on
1: How do I access the GP2X keys? Someone gave me an include (gp2x_joymap.h), but I can't seem to get it to work.
It's defined in the include file like so;
2: How do I turn off the mouse in SDL? According to SDL documentation, this should work;
( I put this straight after main() )
That's how the documentation suggested it's done anyway, it wasn't too clear to be honest. It's being called before video initialisation though, could that be the problem?
Edit - yes, that was the problem - solved that one. Just need the control mapping problem taken care of now.
1: How do I access the GP2X keys? Someone gave me an include (gp2x_joymap.h), but I can't seem to get it to work.
Code:
if( event.type == GP2X_BUTTON_START )
{
quit = true;
}
It's defined in the include file like so;
Code:
#define GP2X_BUTTON_START (8)
2: How do I turn off the mouse in SDL? According to SDL documentation, this should work;
Code:
SDL_ShowCursor(SDL_DISABLE);
( I put this straight after main() )
That's how the documentation suggested it's done anyway, it wasn't too clear to be honest. It's being called before video initialisation though, could that be the problem?
Edit - yes, that was the problem - solved that one. Just need the control mapping problem taken care of now.