-
Notifications
You must be signed in to change notification settings - Fork 13
fplGamepadState Struct Reference
A structure containing the entire gamepad state, that defines a full gamepad state in XInput/XBox layout. More...
#include <final_platform_layer.h>
| Type | Name |
|---|---|
| union { | |
| struct { | |
| union { | |
| struct { | |
| fplGamepadButton actionDown |
Action button down. More... |
| fplGamepadButton actionLeft |
Action button left. More... |
| fplGamepadButton actionRight |
Action button right. More... |
| fplGamepadButton actionUp |
Action button up. More... |
| } | |
| 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 actions [4] |
Four action buttons. 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 physically 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, that defines a full gamepad state in XInput/XBox layout.
Definition at line 9231 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionAAction button A.
Definition at line 9246 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionBAction button B.
Definition at line 9248 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionDownAction button down.
Definition at line 9256 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionLeftAction button left.
Definition at line 9260 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionRightAction button right.
Definition at line 9258 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actions[4]Four action buttons.
Definition at line 9265 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionUpAction button up.
Definition at line 9262 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionXAction button X.
Definition at line 9250 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::actionYAction button Y.
Definition at line 9252 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::backBack button.
Definition at line 9271 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::buttons[14]All gamepad buttons.
Definition at line 9284 of file final_platform_layer.h.
const char* fplGamepadState::deviceNameDevice name.
Definition at line 9288 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::dpadDownDigital button down.
Definition at line 9239 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::dpadLeftDigital button left.
Definition at line 9241 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::dpadRightDigital button right.
Definition at line 9237 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::dpadUpDigital button up.
Definition at line 9235 of file final_platform_layer.h.
fpl_b32 fplGamepadState::isActiveIs this device active, which means are any buttons pressed or positions stick changed.
Definition at line 9307 of file final_platform_layer.h.
fpl_b32 fplGamepadState::isConnectedIs device physically connected.
Definition at line 9305 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::leftShoulderLeft shoulder button.
Definition at line 9279 of file final_platform_layer.h.
float fplGamepadState::leftStickXAnalog left thumb X in range (-1.0 to 1.0f).
Definition at line 9291 of file final_platform_layer.h.
float fplGamepadState::leftStickYAnalog left thumb Y in range (-1.0 to 1.0f).
Definition at line 9293 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::leftThumbAnalog left thumb button.
Definition at line 9274 of file final_platform_layer.h.
float fplGamepadState::leftTriggerAnalog left trigger in range (0.0 to 1.0f).
Definition at line 9300 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::rightShoulderRight shoulder button.
Definition at line 9281 of file final_platform_layer.h.
float fplGamepadState::rightStickXAnalog right thumb X in range (-1.0 to 1.0f).
Definition at line 9295 of file final_platform_layer.h.
float fplGamepadState::rightStickYAnalog right thumb Y in range (-1.0 to 1.0f).
Definition at line 9297 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::rightThumbAnalog right thumb button.
Definition at line 9276 of file final_platform_layer.h.
float fplGamepadState::rightTriggerAnalog right trigger in range (0.0 to 1.0f).
Definition at line 9302 of file final_platform_layer.h.
fplGamepadButton fplGamepadState::startStart button.
Definition at line 9269 of file final_platform_layer.h.
The documentation for this struct was generated from the following file:
- Assertion & Debug
- Atomic operations
- Audio functions
- Clipboard functions
- Console functions
- Constants
- Display/Monitor functions
- Dynamic library loading
- Error Handling
- Files/IO functions
- Function macros
- Hardware Infos
- Input types and functions
- Localization functions
- Logging
- Memory Macros
- Memory functions
- Operating system Infos
- Path functions
- Platform functions
- Session Infos
- Settings & Configurations
- Storage class identifiers
- String functions
- Threading and synchronizations routines
- Timing functions
- Video functions
- Window events
- Window functions
- fplARMCPUCapabilities
- fplAudioChannelMap
- fplAudioDeviceID
- fplAudioDeviceInfo
- fplAudioFormat
- fplAudioSettings
- fplColor32
- fplConditionVariable
- fplConsoleSettings
- fplCPUCapabilities
- fplCPUIDLeaf
- fplDateTime
- fplDateTimeCreationResult
- fplDateTimeResult
- fplDisplayInfo
- fplDisplayMode
- fplDynamicLibraryHandle
- fplEndianess
- fplEvent
- fplFileEntry
- fplFileHandle
- fplFilePermissions
- fplFileTimeStamps
- fplGamepadButton
- fplGamepadData
- fplGamepadEvent
- fplGamepadInfo
- fplGamepadInputBinding
- fplGamepadMapping
- fplGamepadSettings
- fplGamepadState
- fplGamepadStates
- fplGraphicsApiSettings
- fplImageSource
- fplInputBackendMask
- fplInputBackendSupport
- fplInputDevice
- fplInputDeviceGuid
- fplInputSettings
- fplInternalConditionVariable
- fplInternalDynamicLibraryHandle
- fplInternalFileEntryHandle
- fplInternalFileHandle
- fplInternalFileRootInfo
- fplInternalMutexHandle
- fplInternalSemaphoreHandle
- fplInternalSignalHandle
- fplInternalThreadHandle
- fplKeyboardEvent
- fplKeyboardState
- fplLogSettings
- fplLogWriter
- fplLogWriterConsole
- fplLogWriterCustom
- fplMemoryAllocationSettings
- fplMemoryBlock
- fplMemoryInfos
- fplMemorySettings
- fplMouseEvent
- fplMouseState
- fplMutexHandle
- fplOpenGLSettings
- fplOSVersionInfos
- fplSemaphoreHandle
- fplSettings
- fplSignalHandle
- fplSpecificAudioSettings
- fplThreadHandle
- fplThreadParameters
- fplTimestamp
- fplVersionInfo
- fplVideoBackBuffer
- fplVideoRect
- fplVideoRequirements
- fplVideoRequirementsVulkan
- fplVideoSettings
- fplVideoSurface
- fplVideoSurfaceOpenGL
- fplVideoSurfaceVulkan
- fplVideoWindow
- fplVulkanSettings
- fplWindowCallbacks
- fplWindowDropFiles
- fplWindowEvent
- fplWindowPosition
- fplWindowSettings
- fplWindowSize
- fplX86CPUCapabilities