aboutsummaryrefslogtreecommitdiff
path: root/engines/access/events.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-16 16:15:48 -0400
committerPaul Gilbert2014-08-16 16:15:48 -0400
commit0b7078397417a3f54d33cebcd602034c8d0d1a1e (patch)
treef1c512b835ccc0a5acf33a2fab5ffe447ab570f2 /engines/access/events.cpp
parentbca9f14719dda5185c443cae6c16b6a374f50ab2 (diff)
downloadscummvm-rg350-0b7078397417a3f54d33cebcd602034c8d0d1a1e.tar.gz
scummvm-rg350-0b7078397417a3f54d33cebcd602034c8d0d1a1e.tar.bz2
scummvm-rg350-0b7078397417a3f54d33cebcd602034c8d0d1a1e.zip
ACCESS: Fix selecting buttons from the bottom of the screen
Diffstat (limited to 'engines/access/events.cpp')
-rw-r--r--engines/access/events.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/access/events.cpp b/engines/access/events.cpp
index 9c6b45737d..765d57cf35 100644
--- a/engines/access/events.cpp
+++ b/engines/access/events.cpp
@@ -118,7 +118,6 @@ void EventsManager::pollEvents(bool suppressFrames) {
Common::Event event;
while (g_system->getEventManager()->pollEvent(event)) {
- // Handle keypress
switch (event.type) {
case Common::EVENT_QUIT:
case Common::EVENT_RTL:
@@ -131,13 +130,15 @@ void EventsManager::pollEvents(bool suppressFrames) {
_vm->_debugger->attach();
_vm->_debugger->onFrame();
} else {
-
+ _keypresses.push(event.kbd);
}
return;
case Common::EVENT_KEYUP:
return;
case Common::EVENT_MOUSEMOVE:
_mousePos = event.mouse;
+ _mouseCol = _mousePos.x / 8;
+ _mouseRow = _mousePos.y / 8;
break;
case Common::EVENT_LBUTTONDOWN:
_leftButton = true;
@@ -169,7 +170,6 @@ void EventsManager::checkForNextFrameCounter() {
}
void EventsManager::nextFrame() {
-
// Give time to the debugger
_vm->_debugger->onFrame();