libdragon
|
SI Controller Data. More...
#include <controller.h>
Data Fields | |
unsigned | __pad0__: 16 |
Unused padding bits. | |
unsigned | err: 2 |
Status of the last command. | |
unsigned | __pad1__: 14 |
Unused padding bits. | |
union { | |
struct { | |
unsigned int data: 32 | |
32-bit data sent to or returned from SI | |
} | |
struct { | |
unsigned A: 1 | |
State of the A button. | |
unsigned B: 1 | |
State of the B button. | |
unsigned Z: 1 | |
State of the Z button. | |
unsigned start: 1 | |
State of the start button. | |
unsigned up: 1 | |
State of the up button. | |
unsigned down: 1 | |
State of the down button. | |
unsigned left: 1 | |
State of the left button. | |
unsigned right: 1 | |
State of the right button. | |
unsigned __pad0__: 2 | |
Unused padding bits. | |
unsigned L: 1 | |
State of the L button. | |
unsigned R: 1 | |
State of the R button. | |
unsigned C_up: 1 | |
State of the C up button. | |
unsigned C_down: 1 | |
State of the C down button. | |
unsigned C_left: 1 | |
State of the C left button. | |
unsigned C_right: 1 | |
State of the C right button. | |
signed x: 8 | |
State of the X button. | |
signed y: 8 | |
State of the Y button. | |
} | |
}; |
SI Controller Data.