comparison src/video/win32/SDL_win32events.c @ 2726:f23ebf1ddac4

Dynamically load wintab32.dll
author Sam Lantinga <slouken@libsdl.org>
date Tue, 26 Aug 2008 06:03:48 +0000
parents 0e2b65f32298
children 264037dd3c7a
comparison
equal deleted inserted replaced
2725:6ce6d56b63bf 2726:f23ebf1ddac4
134 switch (msg) { 134 switch (msg) {
135 135
136 case WT_PACKET: 136 case WT_PACKET:
137 { 137 {
138 /* if we receive such data we need to update the pressure */ 138 /* if we receive such data we need to update the pressure */
139 if (WTPacket((HCTX) lParam, wParam, &packet)) { 139 SDL_VideoData *videodata = data->videodata;
140 if (videodata->wintabDLL
141 && videodata->WTPacket((HCTX) lParam, wParam, &packet)) {
140 SDL_ChangeEnd(tablet, (int) packet.pkCursor); 142 SDL_ChangeEnd(tablet, (int) packet.pkCursor);
141 pressure = (int) packet.pkNormalPressure; 143 pressure = (int) packet.pkNormalPressure;
142 } 144 }
143 } 145 }
144 break; 146 break;