diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-01-18 19:22:07 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-01-18 19:22:07 -0500 |
commit | 6c6907fd9c8dbc6d9c7663bd40120720f29044c7 (patch) | |
tree | c3da28cc631ed6c71bab53c09f970edadf0741cd | |
parent | e9c9d8dacd06231fcf0c29b571e6cdc909b360de (diff) |
doc: Add example input module import snippets.
* doc/api/input.texi: Add import snippets.
-rw-r--r-- | doc/api/input.texi | 12 |
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 |