Fork me on GitHub

API Documentation

Monitors mouse input for use in render loops
Defined in: glge_input.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
GLGE.MouseInput(element)
Method Summary
Method Attributes Method Name and Description
 
Gets the mouse coords
 
isButtonDown(button)
Tests if a mouse button is pressed
Class Detail
GLGE.MouseInput(element)
Parameters:
element
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

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 12 2012 14:20:23 GMT+0000 (GMT)