Boolean for internal use that holds if a click was started.
Used to show the available keys in the Manager. Mostly used for import.
Holds the position of the mouse or touchpoint of the last frame.
Represents the store of the data.
Manages all clients that need the mouse and touchevents. Calls a function that takes the delta of the last movement as parameter.
Holds the instance of the InputManager.
Returns all saved values.
Returns the instance of the Manager or creates a new one if there is none. Only one instance is allowed.
Saves a value in the Manager. Overrides existing values of the key.
The key of the value
The value to be saved
Adds a value if it not already exists within the storage.
The key of the value
The value to be saved
Binds handler to the Events of the Canvas.
Our WebGL canvas.
Checks if a key exists in the storage.
The key to be checked.
Returns the value of a key or undefined if the key not exists.
The key of the value to be returned.
Checks for a key and returns its value or adds the default provided.
The key of the value to be returned.
Defaultvalue that should be added and returned, if the key not exists.
Triggers registered functions on a keypress.
Event to handle.
Internal function to handle a MouseEndEvent.
Event to handle.
Internal function to handle a MouseMoveEvent.
Event to handle.
Internal function to handle a MouseStartEvent.
Event to handle.
Internal function to handle a TouchEndEvent.
Event to handle.
Internal function to handle a TouchMoveEvent.
Event to handle.
Internal function to handle a TouchStartEvent.
Event to handle.
Allows to register a callback for a specific keypress.
The string of the key to listen to.
Function that should be called on Keypress.
Removes a certain key from the storage.
The key of the value to be removed.
Generated using TypeDoc
This Manager manages inputevents. An Object can register a callback function that is called if the corresponding key is pressed.