Module core.mouse
T-Engine mouse API
Functions
| get () | Finds the position of the mouse cursor. | 
| set (x, y) | Moves the mouse cursor. | 
| set_current_handler (handler) | Sets the Lua mouse handler. | 
Functions
- get ()
- 
Finds the position of the mouse cursor.
Return value:The x, y position (in pixels???) of the mouse cursor.
- set (x, y)
- 
Moves the mouse cursor.
Parameters- x: The x-pixel-coordinate to move the mouse to.
- y: The y-pixel-coordinate to move the mouse to.
 
- set_current_handler (handler)
- 
Sets the Lua mouse handler. The mouse events are then collected by the C core and passed to handler.
Parameters- handler: The Lua handler object.