fix for wrong(or rather unset) mouse 0,0 (x,y) position when joystick is plugged

when code handle joystick motion and mapping to mouse motion, it should also
set mouse x,y position

svn-id: r6880
This commit is contained in:
Paweł Kołodziejski 2003-03-29 09:56:51 +00:00
parent c13452c7b6
commit 848c566d50

View file

@ -780,6 +780,10 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
}
#endif
}
event->mouse.x = km.x;
event->mouse.y = km.y;
event->mouse.x /= _scaleFactor;
event->mouse.y /= _scaleFactor;
return true;
case SDL_VIDEOEXPOSE: