mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 10:26:40 +00:00
ACCESS: Added extra mouse handling to pollEvents
This commit is contained in:
parent
3475fda076
commit
a347435f26
@ -38,7 +38,7 @@ EventsManager::EventsManager(AccessEngine *vm): _vm(vm) {
|
||||
_cursorId = CURSOR_NONE;
|
||||
_frameCounter = 10;
|
||||
_priorFrameTime = 0;
|
||||
_leftButton = false;
|
||||
_leftButton = _rightButton = false;
|
||||
_mouseMove = false;
|
||||
}
|
||||
|
||||
@ -126,10 +126,20 @@ void EventsManager::pollEvents() {
|
||||
return;
|
||||
case Common::EVENT_KEYUP:
|
||||
return;
|
||||
case Common::EVENT_MOUSEMOVE:
|
||||
_mousePos = event.mouse;
|
||||
break;
|
||||
case Common::EVENT_LBUTTONDOWN:
|
||||
_leftButton = true;
|
||||
return;
|
||||
case Common::EVENT_LBUTTONUP:
|
||||
_leftButton = false;
|
||||
return;
|
||||
case Common::EVENT_RBUTTONDOWN:
|
||||
_rightButton = true;
|
||||
return;
|
||||
case Common::EVENT_RBUTTONUP:
|
||||
_rightButton = false;
|
||||
return;
|
||||
default:
|
||||
break;
|
||||
|
@ -51,7 +51,7 @@ private:
|
||||
void nextFrame();
|
||||
public:
|
||||
CursorType _cursorId;
|
||||
bool _leftButton;
|
||||
bool _leftButton, _rightButton;
|
||||
Common::Point _mousePos;
|
||||
bool _mouseMove;
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user