|
libjoybus
Joybus implementation for 32-bit MCUs
|
GameCube controller Joybus target. More...
#include <gc_controller.h>
Data Fields | |
| struct joybus_target | base |
| Controller ID. | |
| uint8_t | id [3] |
| struct joybus_gc_controller_input | origin |
| Origin input state. | |
| struct joybus_gc_controller_input | input |
| Current input state. | |
| uint8_t | packed_input [8] |
| Packed input state buffer. | |
| bool | input_valid |
| Whether the input state is valid. | |
| joybus_gc_controller_reset_cb_t | on_reset |
| Callback for controller reset events. | |
| joybus_gc_controller_motor_cb_t | on_motor_state_change |
| Callback for controller motor state change events. | |
GameCube controller Joybus target.