![]() |
libdragon
|
Controller Subsystem. More...
Go to the source code of this file.
Data Structures | |
struct | _SI_condat |
SI Nintendo 64 controller data. More... | |
struct | _SI_condat_gc |
SI GameCube controller data. More... | |
struct | SI_origdat_gc |
SI GameCube controller origin data. More... | |
struct | SI_controllers_state_t |
SI controller data for all controller ports. More... | |
struct | SI_controllers_origin_t |
SI GameCube controller origin data for all controller ports. More... | |
union | _SI_condat.__unnamed41__ |
struct | _SI_condat.__unnamed41__.__unnamed43__ |
struct | _SI_condat.__unnamed41__.__unnamed45__ |
union | _SI_condat_gc.__unnamed47__ |
struct | _SI_condat_gc.__unnamed47__.__unnamed49__ |
struct | _SI_condat_gc.__unnamed47__.__unnamed51__ |
Macros | |
Bitmasks for controller status | |
| |
#define | CONTROLLER_1_INSERTED 0xF000 |
Controller 1 Inserted. | |
#define | CONTROLLER_2_INSERTED 0x0F00 |
Controller 2 Inserted. | |
#define | CONTROLLER_3_INSERTED 0x00F0 |
Controller 3 Inserted. | |
#define | CONTROLLER_4_INSERTED 0x000F |
Controller 4 Inserted. | |
Accessory ID Values | |
| |
#define | ACCESSORY_NONE 0 |
No accessory present. | |
#define | ACCESSORY_MEMPAK 1 |
Mempak present. | |
#define | ACCESSORY_RUMBLEPAK 2 |
Rumblepak present. | |
#define | ACCESSORY_VRU 3 |
VRU present. | |
#define | ACCESSORY_TRANSFERPAK 4 |
Transferpak present. | |
SI Error Values | |
| |
#define | ERROR_NONE 0x0 |
No error occured. | |
#define | ERROR_BAD_COMMAND 0x1 |
Command not recognized or malformed. | |
#define | ERROR_NOT_PRESENT 0x2 |
Controller not present. | |
Controller Subsystem.