KallistiOS  ##version##
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Fields
cont_state_t Struct Reference

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...
 

Detailed Description

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).

Field Documentation

uint32 cont_state_t::buttons

Buttons bitfield.

See also
Controller button codes
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.


The documentation for this struct was generated from the following file: