InputAPI reference
Interface IActionSource
Namespace: MicroEngine.Input
Assembly: MicroEngine.Input.dll
Guide: Input
A source of actions rather than of keys: on-screen touch controls, a network peer, an accessibility switch or an AI. Added with AddSource, it is read every step together with the keyboard and gamepad, so a game cannot tell which produced an action.
public interface IActionSourceProperties
Actions
Actions this source may press that need no key binding (read even if the map does not bind them).
IEnumerable<string> Actions { get; }Property Value
Device
The kind of device this source stands for, reported by LastDevice.
InputDevice Device { get; }Property Value
Methods
IsDown(string)
Whether the action is down (digital).
bool IsDown(string action)Parameters
action string
Returns
Value(string)
The action’s strength, 0..1 (analog). Digital sources keep the default.
float Value(string action)Parameters
action string