mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 04:35:16 +00:00
SCI: adding support for middle mouse button
svn-id: r51422
This commit is contained in:
parent
00ff92e9e0
commit
8a843b6c21
@ -313,6 +313,10 @@ SciEvent EventManager::getScummVMEvent() {
|
|||||||
input.type = SCI_EVENT_MOUSE_PRESS;
|
input.type = SCI_EVENT_MOUSE_PRESS;
|
||||||
input.data = 2;
|
input.data = 2;
|
||||||
break;
|
break;
|
||||||
|
case Common::EVENT_MBUTTONDOWN:
|
||||||
|
input.type = SCI_EVENT_MOUSE_PRESS;
|
||||||
|
input.data = 3;
|
||||||
|
break;
|
||||||
case Common::EVENT_LBUTTONUP:
|
case Common::EVENT_LBUTTONUP:
|
||||||
input.type = SCI_EVENT_MOUSE_RELEASE;
|
input.type = SCI_EVENT_MOUSE_RELEASE;
|
||||||
input.data = 1;
|
input.data = 1;
|
||||||
@ -321,6 +325,10 @@ SciEvent EventManager::getScummVMEvent() {
|
|||||||
input.type = SCI_EVENT_MOUSE_RELEASE;
|
input.type = SCI_EVENT_MOUSE_RELEASE;
|
||||||
input.data = 2;
|
input.data = 2;
|
||||||
break;
|
break;
|
||||||
|
case Common::EVENT_MBUTTONUP:
|
||||||
|
input.type = SCI_EVENT_MOUSE_RELEASE;
|
||||||
|
input.data = 3;
|
||||||
|
break;
|
||||||
|
|
||||||
// Misc events
|
// Misc events
|
||||||
case Common::EVENT_QUIT:
|
case Common::EVENT_QUIT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user