Static MOUSE_Static MOUSE_Static MOUSE_Static MOUSE_Static MOUSE_Static MOUSE_Static getReturns the "location-aware" keyCode, given a raw keyCode and location. The location corresponds to KeyboardEvent.location, which should be 0 for standard keys, 1 for left keys, 2 for right keys, and 3 for numpad keys.
The raw key code
The location
Should be called whenever a key is pressed. The location corresponds to KeyboardEvent.location, which should be 0 for standard keys, 1 for left keys, 2 for right keys, and 3 for numpad keys.
The raw key code associated to the key press.
Optional location: numberThe location of the event.
Should be called whenever a key is released. The location corresponds to KeyboardEvent.location, which should be 0 for standard keys, 1 for left keys, 2 for right keys, and 3 for numpad keys.
The raw key code associated to the key release.
Optional location: numberThe location of the event.
Should be called when the mouse is moved. Some browsers or environments may call this function multiple times during a single frame.
Please note that the coordinates must be expressed relative to the view position.
The mouse new X position
The mouse new Y position
Optional options: { An object containing the mouse movement X and Y if available.
Private get
Store input made on a canvas: mouse position, key pressed and touches states.