(use-modules (sly input mouse))
Mouse hooks, signals, and procedures.
This hook is run whenever the mouse is moved. Procedures added to
this hook should accept two arguments: Numbers x
and y
.
This hook is run whenever a mouse button is pressed. Procedures added
to this hook should accept three arguments: Symbol button
and
numbers x
and y
.
This hook is run whenever a mouse button is clicked. Procedures added
to this hook should accept three arguments: Symbol button
and
numbers x
and y
.
The mouse X coordinate.
The mouse Y coordinate.
The mouse position as a 2D vector.
The last mouse button pressed.
The last mouse button clicked.
Create a signal for the state of button
. Value is #t when mouse button
is pressed or #f otherwise.