[Scummvm-git-logs] scummvm master -> d84bcb3340ef7e0b051209bb0989387f15e7dfde

sev- noreply at scummvm.org
Tue Nov 14 11:54:32 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d84bcb3340 CRAB: Fix keymap not being changed in hud elements


Commit: d84bcb3340ef7e0b051209bb0989387f15e7dfde
    https://github.com/scummvm/scummvm/commit/d84bcb3340ef7e0b051209bb0989387f15e7dfde
Author: Aditya (adityamurali003 at gmail.com)
Date: 2023-11-14T12:54:28+01:00

Commit Message:
CRAB: Fix keymap not being changed in hud elements

Now the keymap is correctly set to KBM_GAME instead of KBM_UI after
Hud elements are closed.

Changed paths:
    engines/crab/game.cpp


diff --git a/engines/crab/game.cpp b/engines/crab/game.cpp
index f7e3a444749..a2014321c6b 100644
--- a/engines/crab/game.cpp
+++ b/engines/crab/game.cpp
@@ -804,6 +804,11 @@ void Game::toggleState(const State &s) {
 	else
 		_state = STATE_GAME;
 
+	// If we are in game state switch to KBM_GAME
+	if (_state == STATE_GAME && g_engine->_inputManager->getKeyBindingMode() != KBM_GAME) {
+		g_engine->_inputManager->setKeyBindingMode(KBM_GAME);
+	}
+
 	// This is because game is the first state, the rest are in order
 	_hud.State(_state - 1);
 	_hud._pause.reset();




More information about the Scummvm-git-logs mailing list