HoverIO.emitEvent

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.

The hover pointer emitting the event must have been loaded earlier (using load) during the same frame for the action to work.

HoverIO will usually pass these down to an ActionIO system. It is up to HoverIO to decide how the input and the resulting input actions is handled, though the node hovered by the pointer will most often receive them.

interface HoverIO
void
emitEvent

Parameters

pointer HoverPointer

Pointer that emitted the event.

event InputEvent

Input event the system should emit. The event is usually considered "active" during the frame the action is "released". For example, user stops holding a mouse button, or a finger stops touching the screen.

Meta