aboutsummaryrefslogtreecommitdiff
path: root/sources/TZR_PollEvent.c
diff options
context:
space:
mode:
Diffstat (limited to 'sources/TZR_PollEvent.c')
-rw-r--r--sources/TZR_PollEvent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/TZR_PollEvent.c b/sources/TZR_PollEvent.c
index a4a489d..9560600 100644
--- a/sources/TZR_PollEvent.c
+++ b/sources/TZR_PollEvent.c
@@ -45,6 +45,10 @@ TZR_PollEvent(TZR_Event *e)
___tzr_mouse_x = se.motion.x;
___tzr_mouse_y = se.motion.y;
break;
+ case SDL_MOUSEWHEEL:
+ ___tzr_scroll_x = se.wheel.x;
+ ___tzr_scroll_y = se.wheel.y;
+ break;
case SDL_JOYDEVICEADDED: {
size_t i;
for (i = 0; i < ___tzr_joysticks_size; i++) {