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:
Gregory Montoir 2005-11-01 13:56:04 +00:00
parent ed8fb560b5
commit 29722f03d3

View File

@ -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: