comparison src/events/SDL_events.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 5daa04d862f1
children 875c3cf1a12c
comparison
equal deleted inserted replaced
1723:4bdbb9b2bd0a 1724:6c63fc2bd986
371 used = -1; 371 used = -1;
372 } 372 }
373 return (used); 373 return (used);
374 } 374 }
375 375
376 SDL_bool
377 SDL_HasEvent(Uint32 mask)
378 {
379 return (SDL_PeepEvents(NULL, 0, SDL_PEEKEVENT, mask) > 0);
380 }
381
376 /* Run the system dependent event loops */ 382 /* Run the system dependent event loops */
377 void 383 void
378 SDL_PumpEvents(void) 384 SDL_PumpEvents(void)
379 { 385 {
380 if (!SDL_EventThread) { 386 if (!SDL_EventThread) {
518 } 524 }
519 525
520 /* This is a generic event handler. 526 /* This is a generic event handler.
521 */ 527 */
522 int 528 int
523 SDL_PrivateSysWMEvent(SDL_SysWMmsg * message) 529 SDL_SendSysWMEvent(SDL_SysWMmsg * message)
524 { 530 {
525 int posted; 531 int posted;
526 532
527 posted = 0; 533 posted = 0;
528 if (SDL_ProcessEvents[SDL_SYSWMEVENT] == SDL_ENABLE) { 534 if (SDL_ProcessEvents[SDL_SYSWMEVENT] == SDL_ENABLE) {