API for seesaw.mouse - Seesaw

by Dave Ray

Full namespace name: seesaw.mouse

Overview

Functions for dealing with the mouse.

Public Variables and Functions



button

function
Usage: (button e)
Return the affected button in a mouse event.

Returns :left, :center, :right, or nil.


button-down?

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.

Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.