[Scummvm-git-logs] scummvm master -> 2e3818269a727b29e03148d4f877fbca717246c5
mduggan
noreply at scummvm.org
Wed Nov 20 10:14:47 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:
2e3818269a ULTIMA: NUVIE: Enable key repeat on walk ops
Commit: 2e3818269a727b29e03148d4f877fbca717246c5
https://github.com/scummvm/scummvm/commit/2e3818269a727b29e03148d4f877fbca717246c5
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2024-11-20T21:14:21+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