Skip to content

fplGamepadInfo Struct Reference

Finalspace edited this page May 29, 2026 · 1 revision

Read-only description of a controller passed to a fpl_gamepad_mapping_resolver_callback at connect time. More...

#include <final_platform_layer.h>

Data Fields

Type Name
uint32_t axisCount
Number of raw axes exposed by the device.
fplInputBackendType backend
Backend that produced this device.
uint32_t buttonCount
Number of raw buttons exposed by the device.
fplGamepadGuid guid
Raw 16-byte SDL-compatible GUID built by the backend.
uint32_t hatCount
Number of raw hats exposed by the device.
uint32_t index
Backend-local slot index for the controller.
const char * name
Display name of the device (UTF-8).
uint16_t productId
USB product id, or 0 when unknown.
uint16_t vendorId
USB vendor id, or 0 when unknown.
uint16_t version
Device version (bcdDevice), or 0 when unknown.

Detailed Description

Read-only description of a controller passed to a fpl_gamepad_mapping_resolver_callback at connect time.

Definition at line 9495 of file final_platform_layer.h.

Field Documentation

axisCount

uint32_t fplGamepadInfo::axisCount

Number of raw axes exposed by the device.

Definition at line 9513 of file final_platform_layer.h.

backend

fplInputBackendType fplGamepadInfo::backend

Backend that produced this device.

Definition at line 9503 of file final_platform_layer.h.

buttonCount

uint32_t fplGamepadInfo::buttonCount

Number of raw buttons exposed by the device.

Definition at line 9511 of file final_platform_layer.h.

guid

fplGamepadGuid fplGamepadInfo::guid

Raw 16-byte SDL-compatible GUID built by the backend.

Definition at line 9497 of file final_platform_layer.h.

hatCount

uint32_t fplGamepadInfo::hatCount

Number of raw hats exposed by the device.

Definition at line 9515 of file final_platform_layer.h.

index

uint32_t fplGamepadInfo::index

Backend-local slot index for the controller.

Definition at line 9501 of file final_platform_layer.h.

name

const char* fplGamepadInfo::name

Display name of the device (UTF-8).

Definition at line 9499 of file final_platform_layer.h.

productId

uint16_t fplGamepadInfo::productId

USB product id, or 0 when unknown.

Definition at line 9507 of file final_platform_layer.h.

vendorId

uint16_t fplGamepadInfo::vendorId

USB vendor id, or 0 when unknown.

Definition at line 9505 of file final_platform_layer.h.

version

uint16_t fplGamepadInfo::version

Device version (bcdDevice), or 0 when unknown.

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