mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 19:36:21 +00:00
updated mouse position whenever the user clicked or moved the mouse. This can be useful for systems with touchpad / pen.
svn-id: r19384
This commit is contained in:
parent
ed8fb560b5
commit
29722f03d3
@ -111,18 +111,14 @@ void Input::delay(uint amount) {
|
||||
|
||||
case OSystem::EVENT_LBUTTONDOWN:
|
||||
_mouseButton |= MOUSE_LBUTTON;
|
||||
#if defined(_WIN32_WCE) || defined(__PALM_OS__)
|
||||
_mouse_x = event.mouse.x;
|
||||
_mouse_y = event.mouse.y;
|
||||
#endif
|
||||
break;
|
||||
|
||||
case OSystem::EVENT_RBUTTONDOWN:
|
||||
_mouseButton |= MOUSE_RBUTTON;
|
||||
#if defined(_WIN32_WCE) || defined(__PALM_OS__)
|
||||
_mouse_x = event.mouse.x;
|
||||
_mouse_y = event.mouse.y;
|
||||
#endif
|
||||
break;
|
||||
|
||||
case OSystem::EVENT_QUIT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user