From b07a1b84e04bad8dd093342b4ac59de455f19b9c Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 13 May 2021 21:01:32 -0400 Subject: Add mouse wheel event handler. --- doc/api.texi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc') diff --git a/doc/api.texi b/doc/api.texi index 8a06690..96ac394 100644 --- a/doc/api.texi +++ b/doc/api.texi @@ -171,6 +171,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. -- cgit v1.2.3