FlixelSteamActionReader
View sourceinterface
org.flixelgdx.input.action.FlixelSteamActionReader
Optional bridge for Steam Input (or similar): digital and analog values keyed by the same logical names as FlixelAction.getName(). Assign to FlixelActionSet.steamReader; FlixelActionDigital and FlixelActionAnalog query it every FlixelActionSet.update(float) alongside physical bindings.
Implementations usually live outside flixelgdx-core (steamworks4j, native JNI). Keep methods allocation-free and fast; they run for every registered action set each frame.
Manifest action names in steam_input_manifest.vdf (see resource under this package) should match FlixelAction.getName() so Steam overlay and your UI use one vocabulary.
Methods
getDigital(String)
Whether the named digital Steam action is active this frame.
Parameters:
| Name | Description |
|---|---|
actionName | Logical action name (matches VDF and FlixelAction.getName()). |
Returns: true when active; default implementations may return false.
getAnalogX(String)
Analog X for the named vector action, typically in -1..1.
Parameters:
| Name | Description |
|---|---|
actionName | Logical action name. |
Returns: X component.
getAnalogY(String)
Analog Y for the named vector action, typically in -1..1.
Parameters:
| Name | Description |
|---|---|
actionName | Logical action name. |
Returns: Y component.