ref: c40dabd91310f12d3e13687e890bf4274c7ddcfa
parent: 95b60462d104de5f64bdf5cfba9a1ffab6e77e73
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Mar 30 02:00:27 EDT 2021
sdl2: fix inverted mouse scrolling
--- a/libnpe_sdl2/events.c
+++ b/libnpe_sdl2/events.c
@@ -129,7 +129,7 @@
if(npe_sdl.m.buttons & (8|16)){
e->type = SDL_MOUSEWHEEL;
e->wheel.x = 0;
- e->wheel.y = (npe_sdl.m.buttons & 8) ? -1 : 1;
+ e->wheel.y = (npe_sdl.m.buttons & 8) ? 1 : -1;
return 1;
}
break;