[Patch] Event fixes for touchscreen
Brad Campbell
brad at seme.com.au
Mon Sep 3 03:56:01 CDT 2001
Changelog :- Fixed mouse position processing for use with a touchscreen.
Index: windows/input.c
===================================================================
RCS file: /home/wine/wine/windows/input.c,v
retrieving revision 1.59
diff -u -r1.59 input.c
--- windows/input.c 2001/08/07 19:19:09 1.59
+++ windows/input.c 2001/09/03 07:35:40
@@ -187,6 +187,12 @@
}
}
+ if (!(mi->dwFlags & MOUSEEVENTF_MOVE) && (mi->dwFlags & MOUSEEVENTF_ABSOLUTE))
+ {
+ PosX = mi->dx;
+ PosY = mi->dy;
+ }
+
if (mi->dwFlags & MOUSEEVENTF_MOVE)
{
queue_raw_hardware_message( WM_MOUSEMOVE, keystate, 0, PosX, PosY,
cvs server: Diffing windows/x11drv
Index: windows/x11drv/event.c
===================================================================
RCS file: /home/wine/wine/windows/x11drv/event.c,v
retrieving revision 1.107
diff -u -r1.107 event.c
--- windows/x11drv/event.c 2001/08/24 00:27:00 1.107
+++ windows/x11drv/event.c 2001/09/03 07:35:56
@@ -477,7 +477,7 @@
break;
}
- X11DRV_SendEvent( statusCodes[buttonNum], pt.x, pt.y,
+ X11DRV_SendEvent( statusCodes[buttonNum] | MOUSEEVENTF_ABSOLUTE, pt.x, pt.y,
keystate, wData, event->time - X11DRV_server_startticks, hWnd);
}
--
Brad....
/"\
Save the Forests \ / ASCII RIBBON CAMPAIGN
Burn a Greenie. X AGAINST HTML MAIL
/ \
More information about the wine-patches
mailing list