|
libjoybus
Joybus implementation for 32-bit MCUs
|
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | joybus_gc_controller_input |
| GameCube controller input state. More... | |
Enumerations | |
| enum | joybus_gcn_analog_mode { JOYBUS_GCN_ANALOG_MODE_0 , JOYBUS_GCN_ANALOG_MODE_1 , JOYBUS_GCN_ANALOG_MODE_2 , JOYBUS_GCN_ANALOG_MODE_3 , JOYBUS_GCN_ANALOG_MODE_4 } |
| Analog modes for packing GameCube controller input state. More... | |
| enum | joybus_gcn_motor_state { JOYBUS_GCN_MOTOR_STOP , JOYBUS_GCN_MOTOR_RUMBLE , JOYBUS_GCN_MOTOR_STOP_HARD } |
| GameCube controller motor states. More... | |
Functions | |
| struct joybus_gc_controller_input | __attribute__ ((packed)) |
Variables | |
| 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. | |
| enum joybus_gcn_analog_mode | __attribute__ |
Analog modes for packing GameCube controller input state.