Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32video.c @ 2710:44e49d3fa6cf
Final merge of Google Summer of Code 2008 work...
Many-mouse and tablet support
by Szymon Wilczek, mentored by Ryan C. Gordon
Everything concerning the project is noted on the wiki:
http://wilku.ravenlord.ws/doku.php?id=start
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 25 Aug 2008 06:33:00 +0000 |
parents | 420716272158 |
children | 0e2b65f32298 |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32video.c Mon Aug 25 05:30:28 2008 +0000 +++ b/src/video/win32/SDL_win32video.c Mon Aug 25 06:33:00 2008 +0000 @@ -31,10 +31,17 @@ #include "SDL_d3drender.h" #include "SDL_gdirender.h" +#include <wintab.h> + /* Initialization/Query functions */ static int WIN_VideoInit(_THIS); static void WIN_VideoQuit(_THIS); +int total_mice = 0; /* total mouse count */ +HANDLE *mice = NULL; /* the handles to the detected mice */ +HCTX *g_hCtx = NULL; /* handles to tablet contexts */ +int tablet = -1; /* we're assuming that there is no tablet */ + /* WIN32 driver bootstrap functions */ static int @@ -140,8 +147,7 @@ } VideoBootStrap WIN32_bootstrap = { - "win32", "SDL Win32/64 video driver", - WIN_Available, WIN_CreateDevice + "win32", "SDL Win32/64 video driver", WIN_Available, WIN_CreateDevice }; @@ -157,6 +163,7 @@ GDI_AddRenderDriver(_this); #endif + g_hCtx = SDL_malloc(sizeof(HCTX)); WIN_InitKeyboard(_this); WIN_InitMouse(_this); @@ -169,6 +176,7 @@ WIN_QuitModes(_this); WIN_QuitKeyboard(_this); WIN_QuitMouse(_this); + SDL_free(g_hCtx); } /* vim: set ts=4 sw=4 expandtab: */