src/events/SDL_events.c
changeset 7082 e9d6004d2978
parent 7077 f8e3dcefed59
child 7190 11612d544fcd
child 8464 a2a909304cfe
equal deleted inserted replaced
7081:ab543a0ef80c 7082:e9d6004d2978
   363 
   363 
   364 int
   364 int
   365 SDL_PushEvent(SDL_Event * event)
   365 SDL_PushEvent(SDL_Event * event)
   366 {
   366 {
   367     SDL_EventWatcher *curr;
   367     SDL_EventWatcher *curr;
   368     event->generic.timestamp = SDL_GetTicks();
   368     event->common.timestamp = SDL_GetTicks();
   369     if (SDL_EventOK && !SDL_EventOK(SDL_EventOKParam, event)) {
   369     if (SDL_EventOK && !SDL_EventOK(SDL_EventOKParam, event)) {
   370         return 0;
   370         return 0;
   371     }
   371     }
   372 
   372 
   373     for (curr = SDL_event_watchers; curr; curr = curr->next) {
   373     for (curr = SDL_event_watchers; curr; curr = curr->next) {