diff options
author | Nipun Garg | 2019-06-29 00:42:48 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:04 +0200 |
commit | ff25a0f4dd69ebe38867366b60a60f4b49633af8 (patch) | |
tree | 4d16247b3ef085efcf334038b51c3829d0dabe03 /engines/hdb/hdb.cpp | |
parent | 5e0e12531b51fc3f904ec11849f62aa73a928c22 (diff) | |
download | scummvm-rg350-ff25a0f4dd69ebe38867366b60a60f4b49633af8.tar.gz scummvm-rg350-ff25a0f4dd69ebe38867366b60a60f4b49633af8.tar.bz2 scummvm-rg350-ff25a0f4dd69ebe38867366b60a60f4b49633af8.zip |
HDB: Add updateMouseButtons and update updateMouse
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r-- | engines/hdb/hdb.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index d0c65b5c0a..0edad42ce5 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -454,6 +454,24 @@ Common::Error HDBGame::run() { case Common::EVENT_MOUSEMOVE: _input->updateMouse(event.mouse.x, event.mouse.y); break; + case Common::EVENT_LBUTTONDOWN: + _input->updateMouseButtons(1, 0, 0); + break; + case Common::EVENT_LBUTTONUP: + _input->updateMouseButtons(-1, 0, 0); + break; + case Common::EVENT_MBUTTONDOWN: + _input->updateMouseButtons(0, 1, 0); + break; + case Common::EVENT_MBUTTONUP: + _input->updateMouseButtons(0, -1, 0); + break; + case Common::EVENT_RBUTTONDOWN: + _input->updateMouseButtons(0, 0, 1); + break; + case Common::EVENT_RBUTTONUP: + _input->updateMouseButtons(0, 0, -1); + break; case Common::EVENT_KEYDOWN: debug("Key was pressed."); break; |