Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32events.c @ 2724:0e2b65f32298
Added Wacom API headers.
FIXME: Dynamically load the Wacom API functions from wintab32.dll
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 26 Aug 2008 05:26:28 +0000 |
parents | 62e7af9b2b67 |
children | f23ebf1ddac4 |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32events.c Tue Aug 26 02:47:26 2008 +0000 +++ b/src/video/win32/SDL_win32events.c Tue Aug 26 05:26:28 2008 +0000 @@ -32,11 +32,6 @@ #include "SDL_vkeys.h" #include "../../events/SDL_events_c.h" -#include <wintab.h> -#define PACKETDATA ( PK_X | PK_Y | PK_BUTTONS | PK_NORMAL_PRESSURE | PK_CURSOR) -#define PACKETMODE 0 -#include <pktdef.h> - /*#define WMMSG_DEBUG*/ #ifdef WMMSG_DEBUG #include <stdio.h> @@ -152,17 +147,15 @@ { /* checking where the proximity message showed up */ int h_context = LOWORD(lParam); - LPPOINT point; + POINT point; GetCursorPos(&point); ScreenToClient(hwnd, &point); /* are we in proximity or out of proximity */ if (h_context == 0) { - SDL_SendProximity(tablet, (int) (&point->x), - (int) (&point->y), SDL_PROXIMITYOUT); + SDL_SendProximity(tablet, point.x, point.y, SDL_PROXIMITYOUT); } else { - SDL_SendProximity(tablet, (int) (&point->x), - (int) (&point->y), SDL_PROXIMITYIN); + SDL_SendProximity(tablet, point.x, point.y, SDL_PROXIMITYIN); } } break; @@ -222,7 +215,7 @@ int i; int size = 0; const RAWMOUSE *raw_mouse = NULL; - LPPOINT point; + POINT point; USHORT flags; /* we're collecting data from the mouse */ @@ -249,11 +242,9 @@ /* if the message was sent by a tablet we have to send also pressure */ if (i == tablet) { - SDL_SendMouseMotion(index, 0, (int) (&point->x), - (int) (&point->y), pressure); + SDL_SendMouseMotion(index, 0, point.x, point.y, pressure); } else { - SDL_SendMouseMotion(index, 0, (int) (&point->x), - (int) (&point->y), 0); + SDL_SendMouseMotion(index, 0, point.x, point.y, 0); } /* we're sending mouse buttons messages to check up if sth changed */ if (flags & RI_MOUSE_BUTTON_1_DOWN) {