We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 621ebf6 commit ee64449Copy full SHA for ee64449
examples/EventWatch.hs
@@ -54,6 +54,12 @@ appLoop = waitEvent >>= go
54
KeyboardEvent keyboardEvent
55
| keyboardEventKeyMotion keyboardEvent == Pressed
56
-> print (keyboardEventKeysym keyboardEvent) >> waitEvent >>= go
57
+ MouseMotionEvent mouseMotionEvent
58
+ -> print mouseMotionEvent >> waitEvent >>= go
59
+ MouseButtonEvent mouseButtonEvent
60
+ -> print mouseButtonEvent >> waitEvent >>= go
61
+ MouseWheelEvent mouseWheelEvent
62
+ -> print mouseWheelEvent >> waitEvent >>= go
63
QuitEvent
64
-> return ()
65
_ -> waitEvent >>= go
0 commit comments