GameCube controller input/origin state.
More...
#include <gcn_controller.h>
|
|
uint16_t | buttons |
| | Button state.
|
|
uint8_t | stick_x |
| | Main stick x-axis position.
|
|
uint8_t | stick_y |
| | Main stick y-axis position.
|
|
uint8_t | substick_x |
| | C-stick x-axis position.
|
|
uint8_t | substick_y |
| | C-stick y-axis position.
|
|
uint8_t | trigger_left |
| | Left analog trigger position.
|
|
uint8_t | trigger_right |
| | Right analog trigger position.
|
|
uint8_t | analog_a |
| | Analog A button value.
|
|
uint8_t | analog_b |
| | Analog B button value.
|
GameCube controller input/origin state.
Matches the wire format of the input state byte-for-byte on a little-endian CPU (wire byte 0 is the low byte of buttons), so it can be sent and received without repacking.
The documentation for this struct was generated from the following file: