aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorfaiface <faiface2202@gmail.com>2019-05-06 18:57:31 +0200
committerfaiface <faiface2202@gmail.com>2019-05-06 18:57:31 +0200
commitebb42b7777c988f802d863251512225e53b92b8f (patch)
tree629961c8924e05f8dc2b1ba6b9649b22b68a105c /README.md
parent88b37c359907ce51933d12dd71570dae72e4b165 (diff)
downloadgui-ebb42b7777c988f802d863251512225e53b92b8f.zip
add mouse scrolling docs
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index a74dd6b..c69f1dd 100644
--- a/README.md
+++ b/README.md
@@ -100,7 +100,9 @@ case event.Matches("mo/move/%d/%d", &x, &y):
case event.Matches("mo/down/%d/%d/%s", &x, &y, &btn):
// mouse button pressed on (x, y)
case event.Matches("mo/up/%d/%d/%s", &x, &y, &btn):
- // mouse button released on (x, y)
+ // mouse button released on (x, y)
+case event.Matches("mo/scroll/%d/%d", &x, &y):
+ // mouse scrolled by (x, y)
case event.Matches("kb/type/%d", &r):
// rune r typed on the keyboard (encoded as a number in the event string)
case event.Matches("kb/down/%s", &key):