(use-modules (sdl2 input mouse))
Return the x coordinate of the mouse cursor.
Return the y coordinate of the mouse cursor.
Return #t
if button is currently being pressed.
Return #t
if button is not currently being pressed.
Create a new cursor from the system’s available set, chosen by cursor-type. The possible values for cursor-type are:
arrow
crosshair
hand
i-beam
size-north-south
size-northwest-southeast
size-northeast-southwest
size-west-east
size-all
no
wait
wait-arrow
Create a new cursor from a surface and the given hotspot coordinates (hot-x, hot-y).
Return the cursor currently in use. The returned cursor object is
internally managed and it’s not necessary to call
delete-cursor!
for it.
Set the current cursor to cursor. If cursor is #f
,
the system default cursor is restored.
Free the memory used by cursor. Be careful!