Mercurial > sdl-ios-xcode
comparison src/events/SDL_keyboard.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 |
---|---|
630 } | 630 } |
631 keyboard->repeat.evt = event; | 631 keyboard->repeat.evt = event; |
632 keyboard->repeat.firsttime = 1; | 632 keyboard->repeat.firsttime = 1; |
633 keyboard->repeat.timestamp = 1; | 633 keyboard->repeat.timestamp = 1; |
634 } | 634 } |
635 if ((SDL_EventOK == NULL) || SDL_EventOK(&event)) { | 635 if ((SDL_EventOK == NULL) || SDL_EventOK(SDL_EventOKParam, &event)) { |
636 posted = 1; | 636 posted = 1; |
637 SDL_PushEvent(&event); | 637 SDL_PushEvent(&event); |
638 } | 638 } |
639 } | 639 } |
640 return (posted); | 640 return (posted); |
667 } | 667 } |
668 } else { | 668 } else { |
669 if (interval > (Uint32) keyboard->repeat.interval) { | 669 if (interval > (Uint32) keyboard->repeat.interval) { |
670 keyboard->repeat.timestamp = now; | 670 keyboard->repeat.timestamp = now; |
671 if ((SDL_EventOK == NULL) | 671 if ((SDL_EventOK == NULL) |
672 || SDL_EventOK(&keyboard->repeat.evt)) { | 672 || SDL_EventOK(SDL_EventOKParam, |
673 &keyboard->repeat.evt)) { | |
673 SDL_PushEvent(&keyboard->repeat.evt); | 674 SDL_PushEvent(&keyboard->repeat.evt); |
674 } | 675 } |
675 } | 676 } |
676 } | 677 } |
677 } | 678 } |