Go to the source code of this file.
Data Structures | |
| struct | psx_pad_state |
| This structure contains the state of the pad (game controller) after polling it with PSX_PollPad() More... | |
| union | psx_pad_state::extra |
| Extra data for non-normal controllers. More... | |
| struct | psx_pad_state::extra::analogJoy |
| Data for analog joysticks. More... | |
| struct | psx_pad_state::extra::analogPad |
| Data for analog joypads (controller). More... | |
| struct | psx_pad_state::extra::negCon |
| Data for Namco NeGcon and steering wheels using its protocol. More... | |
Macros | |
| #define | PAD_LEFT (1<<15) |
| #define | PAD_RIGHT (1<<13) |
| #define | PAD_UP (1<<12) |
| #define | PAD_DOWN (1<<14) |
| #define | PAD_L2 1 |
| #define | PAD_R2 (1<<1) |
| #define | PAD_L1 (1<<2) |
| #define | PAD_R1 (1<<3) |
| #define | PAD_TRIANGLE (1<<4) |
| #define | PAD_CIRCLE (1<<5) |
| #define | PAD_CROSS (1<<6) |
| #define | PAD_SQUARE (1<<7) |
| #define | PAD_SELECT (1<<8) |
| #define | PAD_LANALOGB (1<<9) |
| #define | PAD_RANALOGB (1<<10) |
| #define | PAD_START (1<<11) |
| #define | PAD_READ_RAW_SIZE 21 |
Enumerations | |
| enum | psx_pad_types { PADTYPE_NONE, PADTYPE_NORMALPAD, PADTYPE_ANALOGJOY, PADTYPE_ANALOGPAD, PADTYPE_NEGCON, PADTYPE_KONAMIGUN, PADTYPE_UNKNOWN } |
| These values below are to be used for evalauting the type field of the psx_pad_state structure. More... | |
Functions | |
| void | QueryPAD (int pad_n, unsigned char *in, unsigned char *out, int len) |
| void | pad_read_raw (int pad_n, unsigned char *arr) |
| void | pad_escape_mode (int pad_n, int enable) |
| void | pad_enable_vibration (int pad_n) |
| void | pad_set_vibration (int pad_n, unsigned char small, unsigned char big) |
| #define PAD_CIRCLE (1<<5) |
| #define PAD_CROSS (1<<6) |
| #define PAD_DOWN (1<<14) |
| #define PAD_L1 (1<<2) |
| #define PAD_L2 1 |
| #define PAD_LANALOGB (1<<9) |
| #define PAD_LEFT (1<<15) |
| #define PAD_R1 (1<<3) |
| #define PAD_R2 (1<<1) |
| #define PAD_RANALOGB (1<<10) |
| #define PAD_READ_RAW_SIZE 21 |
| #define PAD_RIGHT (1<<13) |
| #define PAD_SELECT (1<<8) |
| #define PAD_SQUARE (1<<7) |
| #define PAD_START (1<<11) |
| #define PAD_TRIANGLE (1<<4) |
| #define PAD_UP (1<<12) |
| enum psx_pad_types |
These values below are to be used for evalauting the type field of the psx_pad_state structure.
| void pad_enable_vibration | ( | int | pad_n | ) |
| void pad_escape_mode | ( | int | pad_n, |
| int | enable | ||
| ) |
| void pad_read_raw | ( | int | pad_n, |
| unsigned char * | arr | ||
| ) |
| void pad_set_vibration | ( | int | pad_n, |
| unsigned char | small, | ||
| unsigned char | big | ||
| ) |
| void QueryPAD | ( | int | pad_n, |
| unsigned char * | in, | ||
| unsigned char * | out, | ||
| int | len | ||
| ) |
1.8.2