ActionHoverIO

An extension of HoverIO that enables support for dispatching and running input actions.

Members

Functions

runInputAction
bool runInputAction(HoverPointer pointer, InputActionID actionID, bool isActive)
bool runInputAction(HoverPointer pointer, bool isActive)

Handle an input action associated with a pointer.

Inherited Members

From HoverIO

load
int load(HoverPointer pointer)

Load a hover pointer (mouse cursor, finger) and place it at the position currently indicated in the struct. Update the pointer's position if already loaded.

fetch
inout(HoverPointer) fetch(int number)

Fetch a pointer from a number assigned to it by this I/O. This is used by Actionable nodes to find HoverPointer data corresponding to fired input action events.

emitEvent
void emitEvent(HoverPointer pointer, InputEvent event)

Read an input event from an input device. Input devices will call this function every frame if an input event (such as a button press) occurs. Moving a mouse does not qualify as an input event.

hoverOf
inout(Hoverable) hoverOf(HoverPointer pointer)
scrollOf
inout(HoverScrollable) scrollOf(HoverPointer pointer)
isHovered
bool isHovered(Hoverable hoverable)
opApply
int opApply(int delegate(HoverPointer) @(safe) yield)

List all active hover pointer, namely all pointers that have been loaded since the last resize.

opApply
int opApply(int delegate(Hoverable) @(safe) yield)

List all currently hovered nodes.

Meta