Liking cljdoc? Tell your friends :D

seesaw.mouse

Functions for dealing with the mouse.

Functions for dealing with the mouse.
raw docstring

buttonclj

(button e)

Return the affected button in a mouse event.

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

Return the affected button in a mouse event.

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

button-down?clj

(button-down? e btn)

Returns true if the given button is currently down in the given mouse event.

Examples:

(button-down? event :left)

Returns true if the given button is currently down in the given mouse
event.

Examples:

  (button-down? event :left)
sourceraw docstring

locationclj

(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.

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.

sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close