Next: , Previous: , Up: Input   [Contents][Index]


3.3.2 Mouse

(use-modules (sdl2 input mouse))
Procedure: mouse-x

Return the x coordinate of the mouse cursor.

Procedure: mouse-y

Return the y coordinate of the mouse cursor.

Procedure: mouse-button-pressed? button

Return #t if button is currently being pressed.

Procedure: mouse-button-released? button

Return #t if button is not currently being pressed.