src/events/SDL_keyboard.c
branchSDL-1.3
changeset 1731 875c3cf1a12c
parent 1724 6c63fc2bd986
child 1732 fd65f12b6de6
     1.1 --- a/src/events/SDL_keyboard.c	Sat Jul 08 18:06:02 2006 +0000
     1.2 +++ b/src/events/SDL_keyboard.c	Sat Jul 08 20:07:08 2006 +0000
     1.3 @@ -664,10 +664,7 @@
     1.4              keyboard->repeat.firsttime = 1;
     1.5              keyboard->repeat.timestamp = 1;
     1.6          }
     1.7 -        if ((SDL_EventOK == NULL) || SDL_EventOK(SDL_EventOKParam, &event)) {
     1.8 -            posted = 1;
     1.9 -            SDL_PushEvent(&event);
    1.10 -        }
    1.11 +        posted = (SDL_PushEvent(&event) > 0);
    1.12      }
    1.13      return (posted);
    1.14  }
    1.15 @@ -690,10 +687,7 @@
    1.16          event.text.which = (Uint8) index;
    1.17          SDL_strlcpy(event.text.text, text, SDL_arraysize(event.text.text));
    1.18          event.key.windowID = keyboard->focus;
    1.19 -        if ((SDL_EventOK == NULL) || SDL_EventOK(SDL_EventOKParam, &event)) {
    1.20 -            posted = 1;
    1.21 -            SDL_PushEvent(&event);
    1.22 -        }
    1.23 +        posted = (SDL_PushEvent(&event) > 0);
    1.24      }
    1.25      return (posted);
    1.26  }
    1.27 @@ -726,11 +720,7 @@
    1.28              } else {
    1.29                  if (interval > (Uint32) keyboard->repeat.interval) {
    1.30                      keyboard->repeat.timestamp = now;
    1.31 -                    if ((SDL_EventOK == NULL)
    1.32 -                        || SDL_EventOK(SDL_EventOKParam,
    1.33 -                                       &keyboard->repeat.evt)) {
    1.34 -                        SDL_PushEvent(&keyboard->repeat.evt);
    1.35 -                    }
    1.36 +                    SDL_PushEvent(&keyboard->repeat.evt);
    1.37                  }
    1.38              }
    1.39          }