SCI: adding support for middle mouse button

svn-id: r51422
This commit is contained in:
Martin Kiewitz 2010-07-28 14:57:35 +00:00
parent 00ff92e9e0
commit 8a843b6c21

View File

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