comparison src/video/win32/SDL_win32keyboard.c @ 1725:98a3207ddde8 SDL-1.3

Implemented Win32 video mode support
author Sam Lantinga <slouken@libsdl.org>
date Fri, 07 Jul 2006 08:05:39 +0000
parents 6c63fc2bd986
children
comparison
equal deleted inserted replaced
1724:6c63fc2bd986 1725:98a3207ddde8
24 #include "SDL_win32video.h" 24 #include "SDL_win32video.h"
25 25
26 #include "../../events/SDL_keyboard_c.h" 26 #include "../../events/SDL_keyboard_c.h"
27 27
28 void 28 void
29 WIN_AddKeyboard(_THIS) 29 WIN_InitKeyboard(_THIS)
30 { 30 {
31 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; 31 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
32 SDL_Keyboard keyboard; 32 SDL_Keyboard keyboard;
33 33
34 SDL_zero(keyboard); 34 SDL_zero(keyboard);
35 data->keyboard = SDL_AddKeyboard(&keyboard, -1); 35 data->keyboard = SDL_AddKeyboard(&keyboard, -1);
36 } 36 }
37 37
38 void 38 void
39 WIN_DelKeyboard(_THIS) 39 WIN_QuitKeyboard(_THIS)
40 { 40 {
41 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; 41 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
42 42
43 SDL_DelKeyboard(data->keyboard); 43 SDL_DelKeyboard(data->keyboard);
44 } 44 }