Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
3773:3b5691f85c0d | 3774:8b5b67000dc0 |
---|---|
32 #include "SDL_win32video.h" | 32 #include "SDL_win32video.h" |
33 | 33 |
34 #include "../../events/SDL_mouse_c.h" | 34 #include "../../events/SDL_mouse_c.h" |
35 | 35 |
36 #include <wintab.h> | 36 #include <wintab.h> |
37 #define PACKETDATA ( PK_X | PK_Y | PK_BUTTONS | PK_NORMAL_PRESSURE) | 37 #define PACKETDATA ( PK_X | PK_Y | PK_BUTTONS | PK_NORMAL_PRESSURE | PK_CURSOR) |
38 #define PACKETMODE 0 | 38 #define PACKETMODE 0 |
39 #include <pktdef.h> | 39 #include <pktdef.h> |
40 | 40 |
41 extern HANDLE* mice; | 41 extern HANDLE* mice; |
42 | 42 |
174 } | 174 } |
175 /*if it's a tablet, let's read it's maximum and minimum pressure*/ | 175 /*if it's a tablet, let's read it's maximum and minimum pressure*/ |
176 if(tablet==index) | 176 if(tablet==index) |
177 { | 177 { |
178 AXIS pressure; | 178 AXIS pressure; |
179 int cursors; | |
179 WTInfo(WTI_DEVICES,DVC_NPRESSURE, &pressure); | 180 WTInfo(WTI_DEVICES,DVC_NPRESSURE, &pressure); |
180 data->mouse = SDL_AddMouse(&mouse, index,device_name,pressure.axMax,pressure.axMin); | 181 WTInfo(WTI_DEVICES,DVC_NCSRTYPES, &cursors); |
182 data->mouse = SDL_AddMouse(&mouse, index,device_name,pressure.axMax,pressure.axMin,cursors); | |
181 } | 183 } |
182 else | 184 else |
183 { | 185 { |
184 data->mouse = SDL_AddMouse(&mouse, index,device_name,0,0); | 186 data->mouse = SDL_AddMouse(&mouse, index,device_name,0,0,1); |
185 } | 187 } |
186 ++index; | 188 ++index; |
187 | 189 |
188 SDL_free(buffer); | 190 SDL_free(buffer); |
189 SDL_free(key_name); | 191 SDL_free(key_name); |