[Scummvm-git-logs] scummvm master -> 22865c1cf85bf139b98018a03fa28c7e60a380e8
Scorpeg
noreply at scummvm.org
Thu Nov 5 10:38:27 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
22865c1cf8 ENGINES: Add standard hotspot keymap action
Commit: 22865c1cf85bf139b98018a03fa28c7e60a380e8
https://github.com/scummvm/scummvm/commit/22865c1cf85bf139b98018a03fa28c7e60a380e8
Author: Scorp (scorp at mrs.mn)
Date: 2026-11-05T13:38:04+03:00
Commit Message:
ENGINES: Add standard hotspot keymap action
Changed paths:
engines/metaengine.cpp
engines/metaengine.h
diff --git a/engines/metaengine.cpp b/engines/metaengine.cpp
index 5a2bfb0f09b..1d0f946b897 100644
--- a/engines/metaengine.cpp
+++ b/engines/metaengine.cpp
@@ -69,6 +69,13 @@ Common::String MetaEngine::getSavegameFile(int saveGameIdx, const char *target)
}
}
+Common::Action *MetaEngine::createHotspotAction() {
+ Common::Action *action = new Common::Action(Common::kStandardActionToggleHotspots, _("Show/hide hotspots"));
+ action->setEvent(Common::EVENT_HOTSPOTS_SHOW);
+ action->addDefaultInputMapping("h");
+ return action;
+}
+
Common::KeymapArray MetaEngine::initKeymaps(const char *target) const {
using namespace Common;
diff --git a/engines/metaengine.h b/engines/metaengine.h
index 116cd4c5491..720251dd383 100644
--- a/engines/metaengine.h
+++ b/engines/metaengine.h
@@ -37,6 +37,7 @@ class Engine;
class OSystem;
namespace Common {
+class Action;
class Keymap;
class FSList;
class OutSaveFile;
@@ -388,6 +389,9 @@ public:
*/
virtual Common::Array<Common::Keymap *> initKeymaps(const char *target) const;
+ /** Create the standard hotspot action; ownership passes to the receiving keymap. */
+ static Common::Action *createHotspotAction();
+
/**
* Register the default values for the settings that the engine uses into the
* configuration manager.
More information about the Scummvm-git-logs
mailing list