From 9224412274e1e1a31a959083bb257a7d6ab2b113 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 19 Aug 2016 20:40:12 -0400 Subject: Add Sly manual. --- manuals/sly/Mouse.html | 138 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 manuals/sly/Mouse.html (limited to 'manuals/sly/Mouse.html') diff --git a/manuals/sly/Mouse.html b/manuals/sly/Mouse.html new file mode 100644 index 0000000..accf8f7 --- /dev/null +++ b/manuals/sly/Mouse.html @@ -0,0 +1,138 @@ + + + + + +Sly: Mouse + + + + + + + + + + + + + + + + + + + + +
+

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

+
+
+ +

4.4.2 Mouse

+ +
+
(use-modules (sly input mouse))
+
+ +

Mouse hooks, signals, and procedures. +

+
+
Scheme Variable: mouse-move-hook
+

This hook is run whenever the mouse is moved. Procedures added to +this hook should accept two arguments: Numbers x and y. +

+ +
+
Scheme Variable: mouse-press-hook
+

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

+ +
+
Scheme Variable: mouse-click-hook
+

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

+ +
+
Scheme Signal: mouse-x
+

The mouse X coordinate. +

+ +
+
Scheme Signal: mouse-y
+

The mouse Y coordinate. +

+ +
+
Scheme Signal: mouse-position
+

The mouse position as a 2D vector. +

+ +
+
Scheme Signal: mouse-last-down
+

The last mouse button pressed. +

+ +
+
Scheme Signal: mouse-last-up
+

The last mouse button clicked. +

+ +
+
Scheme Procedure: mouse-down? button
+

Create a signal for the state of button. Value is #t when mouse button +is pressed or #f otherwise. +

+ + + + + + -- cgit v1.2.3