|
From: Elias N. <eli...@us...> - 2003-02-24 19:46:56
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv26632/linux Modified Files: org_lwjgl_input_Mouse.cpp Log Message: linux scroller now match win32 behaviour more precisely - scrolling reversed and scaled 120 Index: org_lwjgl_input_Mouse.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Mouse.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Mouse.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- org_lwjgl_input_Mouse.cpp 14 Feb 2003 11:23:01 -0000 1.15 +++ org_lwjgl_input_Mouse.cpp 24 Feb 2003 19:46:52 -0000 1.16 @@ -51,6 +51,8 @@ #define POINTER_WARP_BORDER 10 #define WARP_RETRY 5 +// scale the mouse wheel according to win32 +#define WHEEL_SCALE 120 extern Display *disp; extern Window win; @@ -217,10 +219,10 @@ buttons[2] = JNI_TRUE; break; case Button4: - current_z--; + current_z += WHEEL_SCALE; break; case Button5: - current_z++; + current_z -= WHEEL_SCALE; break; default: assert(0); } |