Skip to main content

FlixelSteamActionReader

View source

interface

org.flixelgdx.input.action.FlixelSteamActionReader

public interface 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)

public boolean getDigital(String actionName)

Whether the named digital Steam action is active this frame.

Parameters:

NameDescription
actionNameLogical action name (matches VDF and FlixelAction.getName()).

Returns: true when active; default implementations may return false.


getAnalogX(String)

public float getAnalogX(String actionName)

Analog X for the named vector action, typically in -1..1.

Parameters:

NameDescription
actionNameLogical action name.

Returns: X component.


getAnalogY(String)

public float getAnalogY(String actionName)

Analog Y for the named vector action, typically in -1..1.

Parameters:

NameDescription
actionNameLogical action name.

Returns: Y component.