comparison src/video/win32/SDL_win32mouse.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_mouse_c.h" 26 #include "../../events/SDL_mouse_c.h"
27 27
28 void 28 void
29 WIN_AddMouse(_THIS) 29 WIN_InitMouse(_THIS)
30 { 30 {
31 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; 31 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
32 SDL_Mouse mouse; 32 SDL_Mouse mouse;
33 33
34 SDL_zero(mouse); 34 SDL_zero(mouse);
35 data->mouse = SDL_AddMouse(&mouse, -1); 35 data->mouse = SDL_AddMouse(&mouse, -1);
36 } 36 }
37 37
38 void 38 void
39 WIN_DelMouse(_THIS) 39 WIN_QuitMouse(_THIS)
40 { 40 {
41 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; 41 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
42 42
43 SDL_DelMouse(data->mouse); 43 SDL_DelMouse(data->mouse);
44 } 44 }