diff src/video/win32/SDL_win32events.c @ 3774:8b5b67000dc0 gsoc2008_manymouse

Cursor support added
author Szymon Wilczek <kazeuser@gmail.com>
date Tue, 05 Aug 2008 14:10:11 +0000
parents 8cc36a399a12
children
line wrap: on
line diff
--- a/src/video/win32/SDL_win32events.c	Mon Aug 04 11:18:10 2008 +0000
+++ b/src/video/win32/SDL_win32events.c	Tue Aug 05 14:10:11 2008 +0000
@@ -32,7 +32,7 @@
 #include "SDL_vkeys.h"
 #include "../../events/SDL_events_c.h"
 #include <wintab.h>
-#define PACKETDATA ( PK_X | PK_Y | PK_BUTTONS | PK_NORMAL_PRESSURE)
+#define PACKETDATA ( PK_X | PK_Y | PK_BUTTONS | PK_NORMAL_PRESSURE | PK_CURSOR)
 #define PACKETMODE 0
 #include <pktdef.h>
 
@@ -141,6 +141,7 @@
 			/*if we receive such data we need to update the pressure*/
 			if (WTPacket((HCTX)lParam, wParam, &packet))
 			{
+				SDL_ChangeEnd(tablet, (int)packet.pkCursor);
 				pressure=(int)packet.pkNormalPressure;
 			}
 		}