aboutsummaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/win.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/win/win.go b/win/win.go
index ac90dd6..b423ff4 100644
--- a/win/win.go
+++ b/win/win.go
@@ -200,6 +200,10 @@ func (w *Win) eventThread() {
}
})
+ w.w.SetScrollCallback(func(_ *glfw.Window, xoff, yoff float64) {
+ w.eventsIn <- gui.Eventf("mo/scroll/%d/%d", int(yoff), int(xoff))
+ })
+
w.w.SetCharCallback(func(_ *glfw.Window, r rune) {
w.eventsIn <- gui.Eventf("kb/type/%d", r)
})