Functions for dealing with the mouse.
Functions for dealing with the mouse.
(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.
(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)
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close