Class GLGE.MouseInput
Monitors mouse input for use in render loops
Defined in: glge_input.js.
Constructor Attributes | Constructor Name and Description |
---|---|
GLGE.MouseInput(element)
|
Method Attributes | Method Name and Description |
---|---|
Gets the mouse coords
|
|
isButtonDown(button)
Tests if a mouse button is pressed
|
Method Detail
{object}
getMousePosition()
Gets the mouse coords
- Returns:
- {object} the current mouse coors
{boolean}
isButtonDown(button)
Tests if a mouse button is pressed
- Parameters:
- {number} button
- the button to check
- Returns:
- {boolean} returns true if the button is being pressed