comparison src/video/win32/SDL_win32window.c @ 1722:5daa04d862f1 SDL-1.3

Added a userdata parameter for event filters. Added a function to filter the existing queued events. Added explicit support for relative mouse mode to the API.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 30 Jun 2006 08:18:44 +0000
parents a1ebb17f9c52
children 6c63fc2bd986
comparison
equal deleted inserted replaced
1721:1cc762cafff8 1722:5daa04d862f1
38 data = (SDL_WindowData *) SDL_malloc(sizeof(*data)); 38 data = (SDL_WindowData *) SDL_malloc(sizeof(*data));
39 if (!data) { 39 if (!data) {
40 SDL_OutOfMemory(); 40 SDL_OutOfMemory();
41 return -1; 41 return -1;
42 } 42 }
43 data->window = window; 43 data->windowID = window->id;
44 data->hwnd = hwnd; 44 data->hwnd = hwnd;
45 data->created = created; 45 data->created = created;
46 data->videodata = (SDL_VideoData *) SDL_GetVideoDevice()->driverdata;
46 47
47 /* Associate the data with the window */ 48 /* Associate the data with the window */
48 if (!SetProp(hwnd, TEXT("SDL_WindowData"), data)) { 49 if (!SetProp(hwnd, TEXT("SDL_WindowData"), data)) {
49 SDL_free(data); 50 SDL_free(data);
50 WIN_SetError("SetProp() failed"); 51 WIN_SetError("SetProp() failed");