KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Bit masks used to identify controller capabilities More...
Macros | |
#define | CONT_CAPABILITY_C (1<<24) |
C button capability mask. | |
#define | CONT_CAPABILITY_B (1<<25) |
B button capability mask. | |
#define | CONT_CAPABILITY_A (1<<26) |
A button capability mask. | |
#define | CONT_CAPABILITY_START (1<<27) |
Start button capability mask. | |
#define | CONT_CAPABILITY_DPAD_UP (1<<28) |
First Dpad up capability mask. | |
#define | CONT_CAPABILITY_DPAD_DOWN (1<<29) |
First Dpad down capability mask. | |
#define | CONT_CAPABILITY_DPAD_LEFT (1<<30) |
First Dpad left capability mask. | |
#define | CONT_CAPABILITY_DPAD_RIGHT (1<<31) |
First Dpad right capability mask. | |
#define | CONT_CAPABILITY_Z (1<<16) |
Z button capability mask. | |
#define | CONT_CAPABILITY_Y (1<<17) |
Y button capability mask. | |
#define | CONT_CAPABILITY_X (1<<18) |
X button capability mask. | |
#define | CONT_CAPABILITY_D (1<<19) |
D button capability mask. | |
#define | CONT_CAPABILITY_DPAD2_UP (1<<20) |
Second Dpad up capability mask. | |
#define | CONT_CAPABILITY_DPAD2_DOWN (1<<21) |
Second Dpad down capability mask. | |
#define | CONT_CAPABILITY_DPAD2_LEFT (1<<22) |
Second Dpad left capability mask. | |
#define | CONT_CAPABILITY_DPAD2_RIGHT (1<<23) |
Second Dpad right capability mask. | |
#define | CONT_CAPABILITY_RTRIG (1<<8) |
Right trigger capability mask. | |
#define | CONT_CAPABILITY_LTRIG (1<<9) |
Left trigger capability mask. | |
#define | CONT_CAPABILITY_ANALOG_X (1<<10) |
First analog X axis capability mask. | |
#define | CONT_CAPABILITY_ANALOG_Y (1<<11) |
First analog Y axis capability mask. | |
#define | CONT_CAPABILITY_ANALOG2_X (1<<12) |
Second analog X axis capability mask. | |
#define | CONT_CAPABILITY_ANALOG2_Y (1<<13) |
Second analog Y axis capability mask. | |
Bit masks used to identify controller capabilities
These bits will be set in the function_data for the controller's deviceinfo if the controller supports the corresponding button/axis capability.
#define CONT_CAPABILITY_A (1<<26) |
A button capability mask.
#define CONT_CAPABILITY_ANALOG2_X (1<<12) |
Second analog X axis capability mask.
#define CONT_CAPABILITY_ANALOG2_Y (1<<13) |
Second analog Y axis capability mask.
#define CONT_CAPABILITY_ANALOG_X (1<<10) |
First analog X axis capability mask.
#define CONT_CAPABILITY_ANALOG_Y (1<<11) |
First analog Y axis capability mask.
#define CONT_CAPABILITY_B (1<<25) |
B button capability mask.
#define CONT_CAPABILITY_C (1<<24) |
C button capability mask.
#define CONT_CAPABILITY_D (1<<19) |
D button capability mask.
#define CONT_CAPABILITY_DPAD2_DOWN (1<<21) |
Second Dpad down capability mask.
#define CONT_CAPABILITY_DPAD2_LEFT (1<<22) |
Second Dpad left capability mask.
#define CONT_CAPABILITY_DPAD2_RIGHT (1<<23) |
Second Dpad right capability mask.
#define CONT_CAPABILITY_DPAD2_UP (1<<20) |
Second Dpad up capability mask.
#define CONT_CAPABILITY_DPAD_DOWN (1<<29) |
First Dpad down capability mask.
#define CONT_CAPABILITY_DPAD_LEFT (1<<30) |
First Dpad left capability mask.
#define CONT_CAPABILITY_DPAD_RIGHT (1<<31) |
First Dpad right capability mask.
#define CONT_CAPABILITY_DPAD_UP (1<<28) |
First Dpad up capability mask.
#define CONT_CAPABILITY_LTRIG (1<<9) |
Left trigger capability mask.
#define CONT_CAPABILITY_RTRIG (1<<8) |
Right trigger capability mask.
#define CONT_CAPABILITY_START (1<<27) |
Start button capability mask.
#define CONT_CAPABILITY_X (1<<18) |
X button capability mask.
#define CONT_CAPABILITY_Y (1<<17) |
Y button capability mask.
#define CONT_CAPABILITY_Z (1<<16) |
Z button capability mask.