Fixed the joystick id usage in the joystick and game controller events.

This commit is contained in:
Sam Lantinga 2013-03-02 17:51:32 -08:00
parent c6dc8b64e7
commit c02018f852
4 changed files with 46 additions and 27 deletions

View file

@ -365,7 +365,7 @@ int
SDL_PushEvent(SDL_Event * event)
{
SDL_EventWatcher *curr;
event->window.timestamp = SDL_GetTicks();
event->generic.timestamp = SDL_GetTicks();
if (SDL_EventOK && !SDL_EventOK(SDL_EventOKParam, event)) {
return 0;
}