diff options
author | Martin Kiewitz | 2010-07-28 14:57:35 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-28 14:57:35 +0000 |
commit | 8a843b6c2152ef0019dfbf864fb250af308b6f9e (patch) | |
tree | 98343de86dd62ad424a49d2c8d8df1edebb4e0fd /engines/sci/event.cpp | |
parent | 00ff92e9e0b112a3016f93c837d918a7b9163b47 (diff) | |
download | scummvm-rg350-8a843b6c2152ef0019dfbf864fb250af308b6f9e.tar.gz scummvm-rg350-8a843b6c2152ef0019dfbf864fb250af308b6f9e.tar.bz2 scummvm-rg350-8a843b6c2152ef0019dfbf864fb250af308b6f9e.zip |
SCI: adding support for middle mouse button
svn-id: r51422
Diffstat (limited to 'engines/sci/event.cpp')
-rw-r--r-- | engines/sci/event.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp index a100dda27c..ee301fff14 100644 --- a/engines/sci/event.cpp +++ b/engines/sci/event.cpp @@ -313,6 +313,10 @@ SciEvent EventManager::getScummVMEvent() { input.type = SCI_EVENT_MOUSE_PRESS; input.data = 2; break; + case Common::EVENT_MBUTTONDOWN: + input.type = SCI_EVENT_MOUSE_PRESS; + input.data = 3; + break; case Common::EVENT_LBUTTONUP: input.type = SCI_EVENT_MOUSE_RELEASE; input.data = 1; @@ -321,6 +325,10 @@ SciEvent EventManager::getScummVMEvent() { input.type = SCI_EVENT_MOUSE_RELEASE; input.data = 2; break; + case Common::EVENT_MBUTTONUP: + input.type = SCI_EVENT_MOUSE_RELEASE; + input.data = 3; + break; // Misc events case Common::EVENT_QUIT: |