Final Platform Layer 0.9.8-beta
|
A structure containing the entire gamepad state. More...
#include <final_platform_layer.h>
Data Fields | ||
union { | ||
struct { | ||
fplGamepadButton actionA | ||
Action button A. More... | ||
fplGamepadButton actionB | ||
Action button B. More... | ||
fplGamepadButton actionX | ||
Action button X. More... | ||
fplGamepadButton actionY | ||
Action button Y. More... | ||
fplGamepadButton back | ||
Back button. More... | ||
fplGamepadButton dpadDown | ||
Digital button down. More... | ||
fplGamepadButton dpadLeft | ||
Digital button left. More... | ||
fplGamepadButton dpadRight | ||
Digital button right. More... | ||
fplGamepadButton dpadUp | ||
Digital button up. More... | ||
fplGamepadButton leftShoulder | ||
Left shoulder button. More... | ||
fplGamepadButton leftThumb | ||
Analog left thumb button. More... | ||
fplGamepadButton rightShoulder | ||
Right shoulder button. More... | ||
fplGamepadButton rightThumb | ||
Analog right thumb button. More... | ||
fplGamepadButton start | ||
Start button. More... | ||
} | ||
fplGamepadButton buttons [14] | ||
All gamepad buttons. More... | ||
}; | ||
const char * | deviceName | |
Device name. | ||
fpl_b32 | isActive | |
Is this device active, which means are any buttons pressed or positions stick changed. | ||
fpl_b32 | isConnected | |
Is device physical connected. | ||
float | leftStickX | |
Analog left thumb X in range (-1.0 to 1.0f) | ||
float | leftStickY | |
Analog left thumb Y in range (-1.0 to 1.0f) | ||
float | leftTrigger | |
Analog left trigger in range (0.0 to 1.0f) | ||
float | rightStickX | |
Analog right thumb X in range (-1.0 to 1.0f) | ||
float | rightStickY | |
Analog right thumb Y in range (-1.0 to 1.0f) | ||
float | rightTrigger | |
Analog right trigger in range (0.0 to 1.0f) | ||
A structure containing the entire gamepad state.
Definition at line 6097 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionA |
Action button A.
Definition at line 6110 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionB |
Action button B.
Definition at line 6112 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionX |
Action button X.
Definition at line 6114 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionY |
Action button Y.
Definition at line 6116 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::back |
Back button.
Definition at line 6121 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::buttons[14] |
All gamepad buttons.
Definition at line 6134 of file final_platform_layer.h.
const char* fplGamepadState::deviceName |
Device name.
Definition at line 6138 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::dpadDown |
Digital button down.
Definition at line 6105 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::dpadLeft |
Digital button left.
Definition at line 6107 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::dpadRight |
Digital button right.
Definition at line 6103 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::dpadUp |
Digital button up.
Definition at line 6101 of file final_platform_layer.h.
fpl_b32 fplGamepadState::isActive |
Is this device active, which means are any buttons pressed or positions stick changed.
Definition at line 6157 of file final_platform_layer.h.
fpl_b32 fplGamepadState::isConnected |
Is device physical connected.
Definition at line 6155 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::leftShoulder |
Left shoulder button.
Definition at line 6129 of file final_platform_layer.h.
float fplGamepadState::leftStickX |
Analog left thumb X in range (-1.0 to 1.0f)
Definition at line 6141 of file final_platform_layer.h.
float fplGamepadState::leftStickY |
Analog left thumb Y in range (-1.0 to 1.0f)
Definition at line 6143 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::leftThumb |
Analog left thumb button.
Definition at line 6124 of file final_platform_layer.h.
float fplGamepadState::leftTrigger |
Analog left trigger in range (0.0 to 1.0f)
Definition at line 6150 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::rightShoulder |
Right shoulder button.
Definition at line 6131 of file final_platform_layer.h.
float fplGamepadState::rightStickX |
Analog right thumb X in range (-1.0 to 1.0f)
Definition at line 6145 of file final_platform_layer.h.
float fplGamepadState::rightStickY |
Analog right thumb Y in range (-1.0 to 1.0f)
Definition at line 6147 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::rightThumb |
Analog right thumb button.
Definition at line 6126 of file final_platform_layer.h.
float fplGamepadState::rightTrigger |
Analog right trigger in range (0.0 to 1.0f)
Definition at line 6152 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::start |
Start button.
Definition at line 6119 of file final_platform_layer.h.