Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Fix mousewheel
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab authored and fabiangreffrath committed Feb 9, 2021
1 parent 5ff8fde commit 93a5106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prboom2/src/SDL/i_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,14 +303,14 @@ while (SDL_PollEvent(Event))
{
event.type = ev_keydown;
event.data1 = KEYD_MWHEELUP;
mwheeldowntic = gametic;
mwheeluptic = gametic;
D_PostEvent(&event);
}
else if (Event->wheel.y < 0)
{
event.type = ev_keydown;
event.data1 = KEYD_MWHEELDOWN;
mwheeluptic = gametic;
mwheeldowntic = gametic;
D_PostEvent(&event);
}
}
Expand Down

0 comments on commit 93a5106

Please sign in to comment.