summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-05-13 21:01:32 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-05-13 21:01:32 -0400
commitb07a1b84e04bad8dd093342b4ac59de455f19b9c (patch)
tree11b0549f53ec60d0d19113ee2e19ea504fb410ec /doc
parent419e220eb5dd9391b02faad8c25f5f5e28079f5d (diff)
Add mouse wheel event handler.
Diffstat (limited to 'doc')
-rw-r--r--doc/api.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/api.texi b/doc/api.texi
index 8a06690..96ac394 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -172,6 +172,20 @@ mouse was moved.
@end enumerate
@item
+@var{mouse-wheel}: Called with two arguments when the mouse wheel is
+scrolled:
+
+@enumerate
+
+@item
+@var{x}: The scroll amount along the X axis.
+
+@item
+@var{y}: The scroll amount along the Y axis.
+
+@end enumerate
+
+@item
@var{controller-add}: Called with a single argument, an SDL game
controller object, when a game controller is connected.