InputHandler
which is part of SceneryBase
and Hubable
. Adding inputs can be done in an overwrite of the inputSetup
method of SceneryBase
. First a Behavior
needs to be added before a key can be assigned.ClickBehavior
, DragBehavior
, ScrollBehavior
.ClickBehavior
is used. Example:x
and y
screen positions of the cursor are not needed they are just ignored. Adding a behavior to the InputHandler
is straightforward:inputHandler
should be available from an overwrite of the inputSetup
method.