shithub: npe

Download patch

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	Sat Mar 20 17:50:51 2021
+++ b/libnpe_sdl2/events.c	Tue Mar 30 02:00:27 2021
@@ -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;