Le 16/11/2011 04:31, jhliu a écrit :
Thanks for GRX provides lot of powerful and useful mouse event handling functions, But it seems to does not support using of the “mouse wheel”. Is there any alternate method to enable the mouse wheel in GRX ?
Please apply the attached diff to grx 2.4.8. Do not bother for offset and fuzz warnings: it is a diff from my copy of grx with various patches, but I have checked that it applies correctly to the original grx 2.4.8 This is an approximate backport from mgrx. It implements P4 and P5 "buttons" when you rotate the wheel forward or backward. Each makes two down / up mouse events. Try the test/mousetst program, maybe by replacing GrSleep(1) by GrSleep(500) to see clearly what happens. It works with X11, win32 and SDL drivers. with djgpp and probably linux console (I have presently no way to check) it is probably ineffective, but do not hamper normal use.
Maurice