diff src/video/win32/SDL_win32mouse.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 5f599ed92fb9
line wrap: on
line diff
--- a/src/video/win32/SDL_win32mouse.c	Mon Aug 04 11:18:10 2008 +0000
+++ b/src/video/win32/SDL_win32mouse.c	Tue Aug 05 14:10:11 2008 +0000
@@ -34,7 +34,7 @@
 #include "../../events/SDL_mouse_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>
 
@@ -176,12 +176,14 @@
 	if(tablet==index)
 	{
 		AXIS pressure;
+		int cursors;
 		WTInfo(WTI_DEVICES,DVC_NPRESSURE, &pressure);
-		data->mouse = SDL_AddMouse(&mouse, index,device_name,pressure.axMax,pressure.axMin);
+		WTInfo(WTI_DEVICES,DVC_NCSRTYPES, &cursors);
+		data->mouse = SDL_AddMouse(&mouse, index,device_name,pressure.axMax,pressure.axMin,cursors);
 	}
 	else
 	{
-		data->mouse = SDL_AddMouse(&mouse, index,device_name,0,0);
+		data->mouse = SDL_AddMouse(&mouse, index,device_name,0,0,1);
 	}
 	++index;