Actionable.actionImpl

Handle an input action.

This method should not be called for nodes for which blocksInput is true.

interface Actionable
bool
actionImpl
(,
int number
,,)
in (!blocksInput, "This node currently doesn't accept input.")

Parameters

io IO

I/O input handling system to trigger the action, for example HoverIO or FocusIO. May be null.

number int

Number assigned by the I/O system. May be used to fetch a resource from the I/O system if it supported.

action InputActionID

ID of the action to handle.

isActive bool

If true, this is an active action. Most event handlers is only interested in active handlers; they indicate the event has changed state (just pressed, or just released), whereas an inactive action merely means the button or key is down.

Return Value

Type: bool

True if the action was handled, false if not.

Meta