ActionIO

I/O interface for mapping input events to input actions.

Input events correspond to direct events from input devices, like keyboard or mouse. The job of ActionIO is to translate them into more meaningful input actions, which nodes can set up listeners for.

ActionIO will work on nodes that are its children. That means that any input handling node must be placed inside as a child will react to these actions. Similarly, nodes representing input devices, also have to be placed as children.

Members

Enums

CoreAction
enum CoreAction

Basic input actions necessary for input actions to work.

Event
enum Event
Undocumented in source.

Functions

emitEvent
void emitEvent(InputEvent event, int number, bool delegate(immutable InputActionID, bool isActive, int number) @(safe) callback)

Pass an input event to transform into an input map.

Static functions

frameEvent
InputEvent frameEvent()

Create an input event to which ActionIO should always bind to the CoreAction.frame input action. Consequently, ActionIO always responds with a CoreAction.frame input action after processing remaining input actions. This can be cancelled by emitting a noopEvent before the frameEvent is handled.

noopEvent
InputEvent noopEvent(bool isActive)

Create an input event which should never activate any input action. For propagation purposes, this event always counts as handled.

Inherited Members

From IO

opEquals
bool opEquals(Object )
Undocumented in source.
loadTo
void loadTo(T resource)

Load a resource by reference. This is the same as Node.load.

Meta