comparison 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
comparison
equal deleted inserted replaced
3766:24db5d326f57 3767:abc8acb8e3d7
29 29
30 #include "SDL_win32video.h" 30 #include "SDL_win32video.h"
31 #include "SDL_d3drender.h" 31 #include "SDL_d3drender.h"
32 #include "SDL_gdirender.h" 32 #include "SDL_gdirender.h"
33 33
34 #include <wintab.h>
35
34 /* Initialization/Query functions */ 36 /* Initialization/Query functions */
35 static int WIN_VideoInit(_THIS); 37 static int WIN_VideoInit(_THIS);
36 static void WIN_VideoQuit(_THIS); 38 static void WIN_VideoQuit(_THIS);
39
40 HCTX* g_hCtx = NULL;
37 41
38 /* WIN32 driver bootstrap functions */ 42 /* WIN32 driver bootstrap functions */
39 43
40 static int 44 static int
41 WIN_Available(void) 45 WIN_Available(void)
155 #endif 159 #endif
156 #if SDL_VIDEO_RENDER_GDI 160 #if SDL_VIDEO_RENDER_GDI
157 GDI_AddRenderDriver(_this); 161 GDI_AddRenderDriver(_this);
158 #endif 162 #endif
159 163
164 g_hCtx = SDL_malloc(sizeof(HCTX));
165
160 WIN_InitKeyboard(_this); 166 WIN_InitKeyboard(_this);
161 WIN_InitMouse(_this); 167 WIN_InitMouse(_this);
162 168
163 return 0; 169 return 0;
164 } 170 }
167 WIN_VideoQuit(_THIS) 173 WIN_VideoQuit(_THIS)
168 { 174 {
169 WIN_QuitModes(_this); 175 WIN_QuitModes(_this);
170 WIN_QuitKeyboard(_this); 176 WIN_QuitKeyboard(_this);
171 WIN_QuitMouse(_this); 177 WIN_QuitMouse(_this);
178 SDL_free(g_hCtx);
172 } 179 }
173 180
174 /* vim: set ts=4 sw=4 expandtab: */ 181 /* vim: set ts=4 sw=4 expandtab: */