Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32video.c @ 4919:716b2cbf4c9e
First pass at Windows multi-touch gesture support
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 30 Nov 2010 17:58:51 -0800 |
parents | 7b1d35d98294 |
children |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32video.c Tue Nov 30 12:38:46 2010 -0800 +++ b/src/video/win32/SDL_win32video.c Tue Nov 30 17:58:51 2010 -0800 @@ -82,6 +82,10 @@ FreeLibrary(data->hAygShell); } #endif + if (data->userDLL) { + FreeLibrary(data->userDLL); + } + SDL_free(device->driverdata); SDL_free(device); } @@ -155,6 +159,13 @@ data->CoordTransform = NULL; #endif + data->userDLL = LoadLibrary(TEXT("USER32.DLL")); + if (data->userDLL) { + data->CloseTouchInputHandle = (BOOL (WINAPI *)( HTOUCHINPUT )) GetProcAddress(data->userDLL, "CloseTouchInputHandle"); + data->GetTouchInputInfo = (BOOL (WINAPI *)( HTOUCHINPUT, UINT, PTOUCHINPUT, int )) GetProcAddress(data->userDLL, "GetTouchInputInfo"); + data->RegisterTouchWindow = (BOOL (WINAPI *)( HWND, ULONG )) GetProcAddress(data->userDLL, "RegisterTouchWindow"); + } + /* Set the function pointers */ device->VideoInit = WIN_VideoInit; device->VideoQuit = WIN_VideoQuit;