|
libjoybus
Joybus implementation for 32-bit MCUs
|
N64 controller input state. More...
#include <n64_controller.h>
Data Fields | |
| uint16_t | buttons |
| Button state. | |
| int8_t | stick_x |
| Stick x-axis position, nominally -80..80. | |
| int8_t | stick_y |
| Stick y-axis position, nominally -80..80. | |
N64 controller input 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.