From 6c6907fd9c8dbc6d9c7663bd40120720f29044c7 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 18 Jan 2015 19:22:07 -0500 Subject: doc: Add example input module import snippets. * doc/api/input.texi: Add import snippets. --- doc/api/input.texi | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/api/input.texi') 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 -- cgit v1.2.3