Wintab32 (Patch 1 of 8) -- Expose more XInput events through the
wintab api.
Robert North
7ownq0k402 at sneakemail.com
Fri Jan 21 12:28:59 CST 2005
This set of patches works towards better quality painting in Painter5.
Tested on Painter5 & Photoshop 6.
Note: I'm aware that this doesn't use Jeremy's X11 event timing code.
Patch No. 8 will fix this.
Changelog:
*Generate Wintab packets for XInput button up/down events.
-------------- next part --------------
Index: dlls/x11drv/wintab.c
===================================================================
--- dlls/x11drv/wintab.c (revision 151)
+++ dlls/x11drv/wintab.c (revision 153)
@@ -621,7 +621,19 @@
button_press_type)?"press":"release");
set_button_state(button->deviceid);
- }
+ gMsgPacket.pkTime = button->time;
+ gMsgPacket.pkSerialNumber = gSerial++;
+ gMsgPacket.pkCursor = button->deviceid;
+ gMsgPacket.pkX = button->axis_data[0];
+ gMsgPacket.pkY = button->axis_data[1];
+ gMsgPacket.pkOrientation.orAzimuth =
+ figure_deg(button->axis_data[3],button->axis_data[4]);
+ gMsgPacket.pkOrientation.orAltitude = 1000 - 15 * max
+ (abs(button->axis_data[3]),abs(button->axis_data[4]));
+ gMsgPacket.pkNormalPressure = button->axis_data[2];
+ gMsgPacket.pkButtons = get_button_state(button->deviceid);
+ SendMessageW(hwndTabletDefault,WT_PACKET,0,(LPARAM)hwnd);
+ }
else if (event->type == key_press_type)
{
TRACE_(event)("Received tablet key press event\n");
More information about the wine-patches
mailing list