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:
parent
c13452c7b6
commit
848c566d50
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue