[Scummvm-git-logs] scummvm branch-2-9 -> 9f88076d6c2eca92195919289098f3c10bc4d172
mduggan
noreply at scummvm.org
Wed Nov 20 10:16:58 UTC 2024
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:
9f88076d6c ULTIMA: NUVIE: Enable key repeat on walk ops
Commit: 9f88076d6c2eca92195919289098f3c10bc4d172
https://github.com/scummvm/scummvm/commit/9f88076d6c2eca92195919289098f3c10bc4d172
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2024-11-20T21:16:36+11:00
Commit Message:
ULTIMA: NUVIE: Enable key repeat on walk ops
This fixes #15397.
Changed paths:
engines/ultima/nuvie/metaengine.cpp
diff --git a/engines/ultima/nuvie/metaengine.cpp b/engines/ultima/nuvie/metaengine.cpp
index 7f8e2532837..c0337e04e36 100644
--- a/engines/ultima/nuvie/metaengine.cpp
+++ b/engines/ultima/nuvie/metaengine.cpp
@@ -194,6 +194,11 @@ static Common::Action *actionDescriptionFromNuvieAction(const NuvieActionDescrip
act->addDefaultInputMapping(n._key1);
if (n._key2)
act->addDefaultInputMapping(n._key2);
+ // Allow WALK operations to repeat so holding the key lets you keep moving
+ // TODO: This would be nice to handle manually inside the event loop so
+ // non-keyboard inputs also work and we can control the repeat rate.
+ if (strncmp(n._id, "WALK", 4) == 0)
+ act->allowKbdRepeats();
return act;
}
More information about the Scummvm-git-logs
mailing list