KallistiOS
##version##
|
Controller status structure. More...
#include <dc/maple/controller.h>
Data Fields | |
uint32 | buttons |
Buttons bitfield. More... | |
int | ltrig |
Left trigger value. More... | |
int | rtrig |
Right trigger value. More... | |
int | joyx |
Main joystick x-axis value. More... | |
int | joyy |
Main joystick y-axis value. More... | |
int | joy2x |
Secondary joystick x-axis value (if applicable). More... | |
int | joy2y |
Secondary joystick y-axis value (if applicable). More... | |
Controller status structure.
This structure contains information about the status of the controller device and can be fetched with maple_dev_status().
A 1 bit in the buttons bitfield indicates that a button is pressed, and the joyx, joyy, joy2x, joy2 values are all 0 based (0 is centered).
uint32 cont_state_t::buttons |
Buttons bitfield.
int cont_state_t::joy2x |
Secondary joystick x-axis value (if applicable).
int cont_state_t::joy2y |
Secondary joystick y-axis value (if applicable).
int cont_state_t::joyx |
Main joystick x-axis value.
int cont_state_t::joyy |
Main joystick y-axis value.
int cont_state_t::ltrig |
Left trigger value.
int cont_state_t::rtrig |
Right trigger value.