Skip to content

fplGamepadState Struct Reference

Finalspace edited this page May 29, 2026 · 1 revision

A structure containing the entire gamepad state, that defines a full gamepad state in XInput/XBox layout. More...

#include <final_platform_layer.h>

Data Fields

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

Detailed Description

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.

Field Documentation

actionA

fplGamepadButton fplGamepadState::actionA

Action button A.

Definition at line 9246 of file final_platform_layer.h.

actionB

fplGamepadButton fplGamepadState::actionB

Action button B.

Definition at line 9248 of file final_platform_layer.h.

actionDown

fplGamepadButton fplGamepadState::actionDown

Action button down.

Definition at line 9256 of file final_platform_layer.h.

actionLeft

fplGamepadButton fplGamepadState::actionLeft

Action button left.

Definition at line 9260 of file final_platform_layer.h.

actionRight

fplGamepadButton fplGamepadState::actionRight

Action button right.

Definition at line 9258 of file final_platform_layer.h.

actions

fplGamepadButton fplGamepadState::actions[4]

Four action buttons.

Definition at line 9265 of file final_platform_layer.h.

actionUp

fplGamepadButton fplGamepadState::actionUp

Action button up.

Definition at line 9262 of file final_platform_layer.h.

actionX

fplGamepadButton fplGamepadState::actionX

Action button X.

Definition at line 9250 of file final_platform_layer.h.

actionY

fplGamepadButton fplGamepadState::actionY

Action button Y.

Definition at line 9252 of file final_platform_layer.h.

back

fplGamepadButton fplGamepadState::back

Back button.

Definition at line 9271 of file final_platform_layer.h.

buttons

fplGamepadButton fplGamepadState::buttons[14]

All gamepad buttons.

Definition at line 9284 of file final_platform_layer.h.

deviceName

const char* fplGamepadState::deviceName

Device name.

Definition at line 9288 of file final_platform_layer.h.

dpadDown

fplGamepadButton fplGamepadState::dpadDown

Digital button down.

Definition at line 9239 of file final_platform_layer.h.

dpadLeft

fplGamepadButton fplGamepadState::dpadLeft

Digital button left.

Definition at line 9241 of file final_platform_layer.h.

dpadRight

fplGamepadButton fplGamepadState::dpadRight

Digital button right.

Definition at line 9237 of file final_platform_layer.h.

dpadUp

fplGamepadButton fplGamepadState::dpadUp

Digital button up.

Definition at line 9235 of file final_platform_layer.h.

isActive

fpl_b32 fplGamepadState::isActive

Is this device active, which means are any buttons pressed or positions stick changed.

Definition at line 9307 of file final_platform_layer.h.

isConnected

fpl_b32 fplGamepadState::isConnected

Is device physically connected.

Definition at line 9305 of file final_platform_layer.h.

leftShoulder

fplGamepadButton fplGamepadState::leftShoulder

Left shoulder button.

Definition at line 9279 of file final_platform_layer.h.

leftStickX

float fplGamepadState::leftStickX

Analog left thumb X in range (-1.0 to 1.0f).

Definition at line 9291 of file final_platform_layer.h.

leftStickY

float fplGamepadState::leftStickY

Analog left thumb Y in range (-1.0 to 1.0f).

Definition at line 9293 of file final_platform_layer.h.

leftThumb

fplGamepadButton fplGamepadState::leftThumb

Analog left thumb button.

Definition at line 9274 of file final_platform_layer.h.

leftTrigger

float fplGamepadState::leftTrigger

Analog left trigger in range (0.0 to 1.0f).

Definition at line 9300 of file final_platform_layer.h.

rightShoulder

fplGamepadButton fplGamepadState::rightShoulder

Right shoulder button.

Definition at line 9281 of file final_platform_layer.h.

rightStickX

float fplGamepadState::rightStickX

Analog right thumb X in range (-1.0 to 1.0f).

Definition at line 9295 of file final_platform_layer.h.

rightStickY

float fplGamepadState::rightStickY

Analog right thumb Y in range (-1.0 to 1.0f).

Definition at line 9297 of file final_platform_layer.h.

rightThumb

fplGamepadButton fplGamepadState::rightThumb

Analog right thumb button.

Definition at line 9276 of file final_platform_layer.h.

rightTrigger

float fplGamepadState::rightTrigger

Analog right trigger in range (0.0 to 1.0f).

Definition at line 9302 of file final_platform_layer.h.

start

fplGamepadButton fplGamepadState::start

Start button.

Definition at line 9269 of file final_platform_layer.h.


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

Final Platform Layer

Pages

Topics

Data Structures

Clone this wiki locally