[Scummvm-git-logs] scummvm master -> 014f31edc100c43517ce8ffe3b35a032781e87bb
mduggan
noreply at scummvm.org
Mon Dec 18 06:21:37 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:
014f31edc1 ULTIMA: NUVIE: Disable keymapper during cutscenes
Commit: 014f31edc100c43517ce8ffe3b35a032781e87bb
https://github.com/scummvm/scummvm/commit/014f31edc100c43517ce8ffe3b35a032781e87bb
Author: PushmePullyu (127053144+PushmePullyu at users.noreply.github.com)
Date: 2023-12-18T17:21:33+11:00
Commit Message:
ULTIMA: NUVIE: Disable keymapper during cutscenes
Keymapper support was added in 12a47d956ee00f62ed235c4009eb57ad0dbda19d
Fix regression introduced in that commit:
Keys bound via the keymapper were no longer usable in cutscenes,
including the intro. This made it impossible to enter a character
name or skip a scene with the default keybinds.
Changed paths:
engines/ultima/nuvie/script/script.cpp
diff --git a/engines/ultima/nuvie/script/script.cpp b/engines/ultima/nuvie/script/script.cpp
index 0bccdc186e1..57a0c232f27 100644
--- a/engines/ultima/nuvie/script/script.cpp
+++ b/engines/ultima/nuvie/script/script.cpp
@@ -49,6 +49,7 @@
#include "ultima/nuvie/core/magic.h"
#include "ultima/nuvie/files/tmx_map.h"
#include "ultima/nuvie/files/u6_lib_n.h"
+#include "backends/keymapper/keymapper.h"
namespace Ultima {
namespace Nuvie {
@@ -940,7 +941,13 @@ bool Script::play_cutscene(const char *script_file) {
ConsoleHide();
- return run_lua_file(script_file_path.c_str());
+ // FIXME: For now we disable the keymapper during cutscenes so input works correctly
+ // (e.g. for character name entry or skipping the intro)
+
+ g_system->getEventManager()->getKeymapper()->setEnabled(false);
+ bool retVal = run_lua_file(script_file_path.c_str());
+ g_system->getEventManager()->getKeymapper()->setEnabled(true);
+ return retVal;
}
MovementStatus Script::call_player_before_move_action(sint16 *rel_x, sint16 *rel_y) {
More information about the Scummvm-git-logs
mailing list