diff options
author | Nipun Garg | 2019-06-28 23:36:16 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:04 +0200 |
commit | 037400ed1bae31704ea7421420ed0686a9af180d (patch) | |
tree | f2ab0035258cb535944b33fa1f2b47ade43f53b1 | |
parent | 0b87875a3ab088eed2ed33f4897aeddaf79b4147 (diff) | |
download | scummvm-rg350-037400ed1bae31704ea7421420ed0686a9af180d.tar.gz scummvm-rg350-037400ed1bae31704ea7421420ed0686a9af180d.tar.bz2 scummvm-rg350-037400ed1bae31704ea7421420ed0686a9af180d.zip |
HDB: Unstub stylusMove() and stylusUp()
-rw-r--r-- | engines/hdb/input.cpp | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/engines/hdb/input.cpp b/engines/hdb/input.cpp index 34dadc19b7..c421b12a25 100644 --- a/engines/hdb/input.cpp +++ b/engines/hdb/input.cpp @@ -130,12 +130,26 @@ void Input::stylusDown(int x, int y) { } } -void stylusUp(int x, int y) { - warning("STUB: Input: stylusUp required"); +void Input::stylusUp(int x, int y) { + _stylusDown = false; } -void stylusMove(int x, int y) { - warning("STUB: Input: stylusMove required"); +void Input::stylusMove(int x, int y) { + // In a cinematic? + if (g_hdb->_ai->playerLocked() || g_hdb->_ai->playerDead()) + return; + + switch (g_hdb->getGameState()) { + case GAME_PLAY: + warning("STUB: stylusMove: Add GetDebug() check"); + break; + case GAME_MENU: + warning("STUB: stylusMove: Menu::processInput() required"); + break; + default: + debug(9, "stylusMove: Unintended GameState"); + break; + } } } // End of Namespace |