Joypad Functions

joy( unsigned int which );

Return the current status of joypad number 'which'. This function is 6 button compliant.


joytrg( unsigned int which );

Return informations about newly pressed buttons and directions of joypad number 'which'. But beware of this function, these informations are refreshed every frame, so if your game loop is not fast enough you could miss some keypresses.

Last updated