comparison 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
comparison
equal deleted inserted replaced
3773:3b5691f85c0d 3774:8b5b67000dc0
30 #include "SDL_win32video.h" 30 #include "SDL_win32video.h"
31 #include "SDL_syswm.h" 31 #include "SDL_syswm.h"
32 #include "SDL_vkeys.h" 32 #include "SDL_vkeys.h"
33 #include "../../events/SDL_events_c.h" 33 #include "../../events/SDL_events_c.h"
34 #include <wintab.h> 34 #include <wintab.h>
35 #define PACKETDATA ( PK_X | PK_Y | PK_BUTTONS | PK_NORMAL_PRESSURE) 35 #define PACKETDATA ( PK_X | PK_Y | PK_BUTTONS | PK_NORMAL_PRESSURE | PK_CURSOR)
36 #define PACKETMODE 0 36 #define PACKETMODE 0
37 #include <pktdef.h> 37 #include <pktdef.h>
38 38
39 /*#define WMMSG_DEBUG*/ 39 /*#define WMMSG_DEBUG*/
40 #ifdef WMMSG_DEBUG 40 #ifdef WMMSG_DEBUG
139 case WT_PACKET: 139 case WT_PACKET:
140 { 140 {
141 /*if we receive such data we need to update the pressure*/ 141 /*if we receive such data we need to update the pressure*/
142 if (WTPacket((HCTX)lParam, wParam, &packet)) 142 if (WTPacket((HCTX)lParam, wParam, &packet))
143 { 143 {
144 SDL_ChangeEnd(tablet, (int)packet.pkCursor);
144 pressure=(int)packet.pkNormalPressure; 145 pressure=(int)packet.pkNormalPressure;
145 } 146 }
146 } 147 }
147 break; 148 break;
148 case WT_PROXIMITY: 149 case WT_PROXIMITY: