Skip to content

InputEventEmitterNode

A Node that emits cancellable input event signals.

Description

An InputEventEmitterNode can be attached as the child of any node via the InputMapApi. Any time the Node#_input, Node#_unhandled_input or Node#_unhandled_key_input method is called on it it will emit a signal accordingly. The signals provide the InputEventEmitterNode whose accept_event ( ) method can then be called to prevent further propagation of the InputEvent.

Methods

void accept_event ( )

Signals

input ( InputEvent event, InputEventEmitterNode emitter ):
Emitted when Node#_input is called on this Node.

unhandled_input ( InputEvent event, InputEventEmitterNode emitter ):
Emitted when Node#_unhandled_input is called on this Node.

unhandled_key_input ( InputEventKey event, InputEventEmitterNode emitter ):
Emitted when Node#_unhandled_key_input is called on this Node.

Method Descriptions

void accept_event ( ):
Call to prevent further propagation of the received InputEvent.