cgv
gamepad::gamepad_state Struct Reference

see https://upload.wikimedia.org/wikipedia/commons/2/2c/360_controller.svg for an explanation of the positions in the state More...

#include <gamepad.h>

Public Member Functions

 gamepad_state ()
 initialize state
 

Public Attributes

unsigned time_stamp
 time stamp can be used whether a change has happened between two states
 
unsigned button_flags
 combination of flags in GamepadButtonStateFlags combined with the OR operation
 
float left_stick_position [2]
 x and y position of left thumb in the range [-1,1]
 
float right_stick_position [2]
 x and y position of left thumb in the range [-1,1]
 
float trigger_position [2]
 values of left and right triggers in the range [0,1]
 

Detailed Description

see https://upload.wikimedia.org/wikipedia/commons/2/2c/360_controller.svg for an explanation of the positions in the state


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