Constructor
new InputHandler(world, enableMouseInteractions)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
world | World | world that the handler effects | |
enableMouseInteractions | Boolean | true | whether particle will interact with mouse (true by default) |
- Source
Classes
Methods
addKeyEvent(keyInput)
Adds a KeyInput
to the list of events that the InputHandler
tracks
Parameters:
Name | Type | Description |
---|---|---|
keyInput | KeyInput |
- Source
startKeyHandling()
Begins key tracking (must be called for key interactions)
- Source
startMouseHandling()
Begins mouse tracking (must be called for mouse interactions)
- Source