API for seesaw.mouse
-
by Dave Ray
Full namespace name:
seesaw.mouse
Overview
Functions for dealing with the mouse.
Public Variables and Functions
function
Usage: (button e)
Return the affected button in a mouse event.
Returns :left, :center, :right, or nil.
function
Usage: (button-down? e btn)
Returns true if the given button is currently down in the given mouse
event.
Examples:
(button-down? event :left)
location
function
Usage: (location)
(location v)
Returns the [x y] location of the mouse.
If given no arguments, returns full screen coordinates.
If given a MouseEvent object returns the mouse location from the event.