Mercurial > sdl-ios-xcode
comparison test/threadwin.c @ 1724:6c63fc2bd986 SDL-1.3
Proof of concept done - Win32 GDI implementation mostly complete.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 06 Jul 2006 07:17:11 +0000 |
parents | 931d111e737a |
children |
comparison
equal
deleted
inserted
replaced
1723:4bdbb9b2bd0a | 1724:6c63fc2bd986 |
---|---|
78 *maskp = mask; | 78 *maskp = mask; |
79 return (icon); | 79 return (icon); |
80 } | 80 } |
81 | 81 |
82 int SDLCALL | 82 int SDLCALL |
83 FilterEvents(SDL_Event * event) | 83 FilterEvents(void *userdata, SDL_Event * event) |
84 { | 84 { |
85 static int reallyquit = 0; | 85 static int reallyquit = 0; |
86 | 86 |
87 switch (event->type) { | 87 switch (event->type) { |
88 | 88 |
294 | 294 |
295 /* Enable printable characters */ | 295 /* Enable printable characters */ |
296 SDL_EnableUNICODE(1); | 296 SDL_EnableUNICODE(1); |
297 | 297 |
298 /* Set an event filter that discards everything but QUIT */ | 298 /* Set an event filter that discards everything but QUIT */ |
299 SDL_SetEventFilter(FilterEvents); | 299 SDL_SetEventFilter(FilterEvents, NULL); |
300 | 300 |
301 /* Create the event handling threads */ | 301 /* Create the event handling threads */ |
302 mouse_thread = SDL_CreateThread(HandleMouse, NULL); | 302 mouse_thread = SDL_CreateThread(HandleMouse, NULL); |
303 keybd_thread = SDL_CreateThread(HandleKeyboard, NULL); | 303 keybd_thread = SDL_CreateThread(HandleKeyboard, NULL); |
304 | 304 |