API Docs for:
Show:

Component_InputHandler Class

Module: gs

The input-handler component is an interface between the input-system of the basic-engine and the game's event-system. In regular this component is used only by game scene to allow its game objects to receive input-events.

Those input-events are necessary to solve the problem which game-object responds to a user-action first by building a responder-chain.

Item Index

Methods

Properties

Methods

dispose

()

Disposes the component and removes event handlers.

setup

()

Sets up event handlers.

update

()

Updates the component by checking the input-system and firing an input-event if necessary.

Properties

blockInput

Boolean

Indicates if all input events, such as mouse and keyboard event, should be blocked.

Default: false