- addAxisEvent
UUID addAxisEvent(string axisName, AxisEvent event)
Add an event for when an axis changes.
- addButtonDownEvent
UUID addButtonDownEvent(string buttonName, ButtonEvent event)
Add an event for when a button goes down.
- addButtonEvent
UUID addButtonEvent(string buttonName, ButtonEvent event)
Add an event for when a button state changes.
- addButtonUpEvent
UUID addButtonUpEvent(string buttonName, ButtonEvent event)
Add an event for when a button goes up.
- getState
T getState(string input, bool checkPrevious = false)
Gets the state of a string-bound input.
- initialize
void initialize()
Processes Config/Input.yml and pulls input string bindings.
- isButtonDown
bool isButtonDown(string buttonName, bool checkPrevious = false)
Check if a given button is down.
- isButtonUp
bool isButtonUp(string buttonName, bool checkPrevious = false)
Check if a given button is down.
- mouseObject
GameObject mouseObject()
Gets the world position of the cursor in the active scene.
- mousePos
vec2ui mousePos()
Gets the position of the cursor.
- mousePosView
vec3f mousePosView()
Gets the world position of the cursor in the active scene.
- mousePosWorld
vec3f mousePosWorld()
Gets the world position of the cursor in the active scene.
- processDiffs
void processDiffs(Tuple!(InputEnum, StateRep)[] diffs)
Called by InputSystem to report changed inputs.
- removeButtonEvent
bool removeButtonEvent(UUID id)
- update
void update()
Updates the key states, and calls all key events.
Manages all input events.