Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32video.c @ 3767:abc8acb8e3d7 gsoc2008_manymouse
Proximity events, Pressure detection for multiple windows. Tablet button detection on the way.
author | Szymon Wilczek <kazeuser@gmail.com> |
---|---|
date | Wed, 23 Jul 2008 16:12:43 +0000 |
parents | 420716272158 |
children | 1b87a8beab9d |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32video.c Sun Jul 06 09:24:56 2008 +0000 +++ b/src/video/win32/SDL_win32video.c Wed Jul 23 16:12:43 2008 +0000 @@ -31,10 +31,14 @@ #include "SDL_d3drender.h" #include "SDL_gdirender.h" +#include <wintab.h> + /* Initialization/Query functions */ static int WIN_VideoInit(_THIS); static void WIN_VideoQuit(_THIS); +HCTX* g_hCtx = NULL; + /* WIN32 driver bootstrap functions */ static int @@ -157,6 +161,8 @@ GDI_AddRenderDriver(_this); #endif + g_hCtx = SDL_malloc(sizeof(HCTX)); + WIN_InitKeyboard(_this); WIN_InitMouse(_this); @@ -169,6 +175,7 @@ WIN_QuitModes(_this); WIN_QuitKeyboard(_this); WIN_QuitMouse(_this); + SDL_free(g_hCtx); } /* vim: set ts=4 sw=4 expandtab: */