2012-06-03 16:11:22 +00:00
|
|
|
|
|
|
|
#ifndef __joystick_h
|
|
|
|
#define __joystick_h
|
|
|
|
|
2019-09-21 18:14:34 +00:00
|
|
|
|
2012-06-03 16:11:22 +00:00
|
|
|
|
|
|
|
#define HAT_CENTERED 0x00
|
|
|
|
#define HAT_UP 0x01
|
|
|
|
#define HAT_RIGHT 0x02
|
|
|
|
#define HAT_DOWN 0x04
|
|
|
|
#define HAT_LEFT 0x08
|
|
|
|
#define HAT_RIGHTUP (HAT_RIGHT|HAT_UP)
|
|
|
|
#define HAT_RIGHTDOWN (HAT_RIGHT|HAT_DOWN)
|
|
|
|
#define HAT_LEFTUP (HAT_LEFT|HAT_UP)
|
|
|
|
#define HAT_LEFTDOWN (HAT_LEFT|HAT_DOWN)
|
|
|
|
|
|
|
|
int32_t JOYSTICK_GetButtons( void );
|
2019-08-13 09:15:49 +00:00
|
|
|
int32_t JOYSTICK_GetGameControllerButtons( void );
|
2012-06-03 16:11:22 +00:00
|
|
|
int32_t JOYSTICK_ClearButton( int32_t b );
|
2019-08-13 09:15:49 +00:00
|
|
|
void JOYSTICK_ClearGameControllerButton( int32_t b );
|
2012-06-03 16:11:22 +00:00
|
|
|
void JOYSTICK_ClearAllButtons( void );
|
|
|
|
|
|
|
|
int32_t JOYSTICK_GetHat( int32_t h );
|
|
|
|
void JOYSTICK_ClearHat( int32_t h );
|
|
|
|
void JOYSTICK_ClearAllHats( void );
|
|
|
|
|
|
|
|
int32_t JOYSTICK_GetAxis( int32_t a );
|
|
|
|
void JOYSTICK_ClearAxis( int32_t a );
|
|
|
|
void JOYSTICK_ClearAllAxes( void );
|
|
|
|
|
|
|
|
#endif /* __joystick_h */
|