Skip to content

fplInputDevice Struct Reference

Finalspace edited this page May 29, 2026 · 1 revision

Describes a single input device exposed by some backend. More...

#include <final_platform_layer.h>

Data Fields

Type Name
fplInputBackendType backend
Backend that owns the device.
fplInputConnectionState connection
Last known connection state.
fplInputDeviceFeatureFlags featureFlags
Capability flags of the device.
fplInputDeviceGuid guid
Stable globally unique identifier for the device.
uint32_t index
Backend-local device index.
char name [FPL_MAX_INPUT_DEVICE_NAME]
Display name of the device.
fplInputSourceType sourceType
Source kind of the device (exactly one bit set).
union {
fplGamepadState gamepad
fplKeyboardState keyboard
fplMouseState mouse
} state
Optional cached state, valid based on sourceType.

Detailed Description

Describes a single input device exposed by some backend.

Definition at line 9585 of file final_platform_layer.h.

Field Documentation

backend

fplInputBackendType fplInputDevice::backend

Backend that owns the device.

Definition at line 9595 of file final_platform_layer.h.

connection

fplInputConnectionState fplInputDevice::connection

Last known connection state.

Definition at line 9599 of file final_platform_layer.h.

featureFlags

fplInputDeviceFeatureFlags fplInputDevice::featureFlags

Capability flags of the device.

Definition at line 9597 of file final_platform_layer.h.

gamepad

fplGamepadState fplInputDevice::gamepad

Definition at line 9604 of file final_platform_layer.h.

guid

fplInputDeviceGuid fplInputDevice::guid

Stable globally unique identifier for the device.

Definition at line 9587 of file final_platform_layer.h.

index

uint32_t fplInputDevice::index

Backend-local device index.

Definition at line 9591 of file final_platform_layer.h.

keyboard

fplKeyboardState fplInputDevice::keyboard

Definition at line 9602 of file final_platform_layer.h.

mouse

fplMouseState fplInputDevice::mouse

Definition at line 9603 of file final_platform_layer.h.

name

char fplInputDevice::name[FPL_MAX_INPUT_DEVICE_NAME]

Display name of the device.

Definition at line 9589 of file final_platform_layer.h.

sourceType

fplInputSourceType fplInputDevice::sourceType

Source kind of the device (exactly one bit set).

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