summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-01-18 19:22:07 -0500
committerDavid Thompson <dthompson2@worcester.edu>2015-01-18 19:22:07 -0500
commit6c6907fd9c8dbc6d9c7663bd40120720f29044c7 (patch)
treec3da28cc631ed6c71bab53c09f970edadf0741cd /doc
parente9c9d8dacd06231fcf0c29b571e6cdc909b360de (diff)
doc: Add example input module import snippets.
* doc/api/input.texi: Add import snippets.
Diffstat (limited to 'doc')
-rw-r--r--doc/api/input.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/api/input.texi b/doc/api/input.texi
index dc3f961..7d13ab9 100644
--- a/doc/api/input.texi
+++ b/doc/api/input.texi
@@ -14,6 +14,10 @@ events (@pxref{Signals}).
@node Keyboard
@subsection Keyboard
+@example
+(use-modules (sly input keyboard))
+@end example
+
Keyboard hooks, signals, and procedures.
@defvr {Scheme Variable} key-press-hook
@@ -61,6 +65,10 @@ A 2D directional vector based on the state of the WASD keys.
@node Mouse
@subsection Mouse
+@example
+(use-modules (sly input mouse))
+@end example
+
Mouse hooks, signals, and procedures.
@defvr {Scheme Variable} mouse-move-hook
@@ -108,6 +116,10 @@ is pressed or #f otherwise.
@node Joystick
@subsection Joystick
+@example
+(use-modules (sly input joystick))
+@end example
+
Joystick hooks, signals, and procedures.
Before using joystick procedures, you must first call the