Skip to content

fplGamepadData Struct Reference

Finalspace edited this page May 29, 2026 · 1 revision

Backend-agnostic snapshot of raw device input that a fplGamepadMapping operates on. More...

#include <final_platform_layer.h>

Data Fields

Type Name
float axes [FPL_GAMEPAD_DATA_MAX_AXES]
Raw analog axes in SDL convention (-1 .. +1, triggers idle at -1).
uint32_t axisCount
Number of valid entries in axes.
uint32_t buttonCount
Number of valid entries in buttons.
bool buttons [FPL_GAMEPAD_DATA_MAX_BUTTONS]
Raw digital buttons (true when pressed).
uint32_t hatCount
Number of valid entries in hats.
uint8_t hats [FPL_GAMEPAD_DATA_MAX_HATS]
Raw hat masks (bit 1=up, 2=right, 4=down, 8=left).

Detailed Description

Backend-agnostic snapshot of raw device input that a fplGamepadMapping operates on.

Definition at line 9476 of file final_platform_layer.h.

Field Documentation

axes

float fplGamepadData::axes[FPL_GAMEPAD_DATA_MAX_AXES]

Raw analog axes in SDL convention (-1 .. +1, triggers idle at -1).

Definition at line 9478 of file final_platform_layer.h.

axisCount

uint32_t fplGamepadData::axisCount

Number of valid entries in axes.

Definition at line 9486 of file final_platform_layer.h.

buttonCount

uint32_t fplGamepadData::buttonCount

Number of valid entries in buttons.

Definition at line 9484 of file final_platform_layer.h.

buttons

bool fplGamepadData::buttons[FPL_GAMEPAD_DATA_MAX_BUTTONS]

Raw digital buttons (true when pressed).

Definition at line 9480 of file final_platform_layer.h.

hatCount

uint32_t fplGamepadData::hatCount

Number of valid entries in hats.

Definition at line 9488 of file final_platform_layer.h.

hats

uint8_t fplGamepadData::hats[FPL_GAMEPAD_DATA_MAX_HATS]

Raw hat masks (bit 1=up, 2=right, 4=down, 8=left).

Definition at line 9482 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