CVS: winex/dlls/dinput/mouse main.c,1.70,1.71
[email protected] 30 Mar 2007 22:05:07 -0000
Newsgroups
gmane.comp.emulators.winex.cvs
Message-ID
<[email protected] >
Subject: winex/dlls/dinput/mouse main.c,1.70,1.71Update of /var/lib/cvsd/cvsroot/winex/dlls/dinput/mouse
In directory agravaine:/tmp/cvs-serv28232/dlls/dinput/mouse
Modified Files:
main.c
Log Message:
- Functionality updated for the mouse wheel in absolute mode.
Index: main.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/dinput/mouse/main.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- main.c 30 Mar 2007 22:04:02 -0000 1.70
+++ main.c 30 Mar 2007 22:05:05 -0000 1.71
@@ -678,9 +678,16 @@
break;
case WM_MOUSEWHEEL:
wdata = (short)HIWORD(hook->mouseData);
- GEN_EVENT(This->offset_array[WINE_MOUSE_Z_POSITION], wdata,
- hook->time, This->dinput->evsequence++);
This->m_state.lZ += wdata;
+ if ( This->absolute ) {
+ GEN_EVENT(This->offset_array[WINE_MOUSE_Z_POSITION], This->m_state.lZ,
+ hook->time, This->dinput->evsequence++);
+ }
+ else {
+ GEN_EVENT(This->offset_array[WINE_MOUSE_Z_POSITION], wdata,
+ hook->time, This->dinput->evsequence++);
+ }
+
break;
}