[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Eiffel wheel mouse



Vincent Rivière wrote:
And Shift+F9 is buggy, it should be Page Left.

Here is a tiny patch for that.
Helmut, please commit!

Fixed left mouse wheel with Eiffel. Contributed by Vincent Riviere.

--
Vincent Rivière
--- freemint.orig/xaaes/src.km/k_mouse.c	2011-05-17 20:24:23.578125000 +0200
+++ freemint/xaaes/src.km/k_mouse.c	2011-05-17 22:50:58.187500000 +0200
@@ -1205,7 +1205,7 @@
 		md.y = md.sy	= y_mouse;
 		md.state	= (scan == 0x59 || scan == 0x5a) ? cfg.ver_wheel_id : cfg.hor_wheel_id;
 		md.cstate	= md.state;
-		md.clicks	= scan == 0x59 ? -1 : 1;
+		md.clicks	= (scan == 0x59 || scan == 0x5c) ? -1 : 1;
 		md.kstate	= 0;
 		md.dbg1		= 0;
 		md.dbg2		= 0;