aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/m4_views.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2009-12-20 07:09:40 +0000
committerPaul Gilbert2009-12-20 07:09:40 +0000
commitb729218bb6f48a7e57cd938f76ca0065983b792e (patch)
treef939869ed15565eabab224fb831493e34169bd89 /engines/m4/m4_views.cpp
parent3da285432b0debb46e2f544b06a442cce47c256f (diff)
downloadscummvm-rg350-b729218bb6f48a7e57cd938f76ca0065983b792e.tar.gz
scummvm-rg350-b729218bb6f48a7e57cd938f76ca0065983b792e.tar.bz2
scummvm-rg350-b729218bb6f48a7e57cd938f76ca0065983b792e.zip
Changed the M4 event handler to encode the keyboard flags into KEVENT_KEY events
svn-id: r46424
Diffstat (limited to 'engines/m4/m4_views.cpp')
-rw-r--r--engines/m4/m4_views.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/m4/m4_views.cpp b/engines/m4/m4_views.cpp
index f9ad5a6fbd..f089207279 100644
--- a/engines/m4/m4_views.cpp
+++ b/engines/m4/m4_views.cpp
@@ -91,7 +91,7 @@ void GUIInventory::onRefresh() {
}
}
-bool GUIInventory::onEvent(M4EventType eventType, int param, int x, int y, GUIObject *&currentItem) {
+bool GUIInventory::onEvent(M4EventType eventType, int32 param, int x, int y, GUIObject *&currentItem) {
bool result = false;
int overIndex = getInsideIndex(x, y);
bool isPressed = (eventType == MEVENT_LEFT_CLICK) || (eventType == MEVENT_LEFT_HOLD) ||
@@ -268,7 +268,7 @@ void GameInterfaceView::setHighlightedButton(int index) {
_highlightedIndex = index;
}
-bool GameInterfaceView::onEvent(M4EventType eventType, int param, int x, int y, bool &captureEvents) {
+bool GameInterfaceView::onEvent(M4EventType eventType, int32 param, int x, int y, bool &captureEvents) {
static bool selectionFlag = false;
if (eventType == MEVENT_LEFT_RELEASE)
selectionFlag = false;