mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 20:21:06 +00:00
KEYMAPPER: Constantify global keymap name
This commit is contained in:
parent
82e0900678
commit
d143872be6
@ -37,6 +37,7 @@
|
||||
namespace Common {
|
||||
|
||||
const char *const kGuiKeymapName = "gui";
|
||||
const char *const kGlobalKeymapName = "global";
|
||||
|
||||
class Keymapper : public Common::EventMapper, private Common::ArtificialEventSource {
|
||||
public:
|
||||
|
@ -231,7 +231,7 @@ void OSystem_Android::setupKeymapper() {
|
||||
|
||||
mapper->registerHardwareKeySet(keySet);
|
||||
|
||||
Keymap *globalMap = new Keymap("global");
|
||||
Keymap *globalMap = new Keymap(kGlobalKeymapName);
|
||||
Action *act;
|
||||
|
||||
act = new Action(globalMap, "VIRT", "Display keyboard",
|
||||
@ -240,7 +240,7 @@ void OSystem_Android::setupKeymapper() {
|
||||
|
||||
mapper->addGlobalKeymap(globalMap);
|
||||
|
||||
mapper->pushKeymap("global");
|
||||
mapper->pushKeymap(kGlobalKeymapName);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -264,7 +264,7 @@ static void setupKeymapper(OSystem &system) {
|
||||
using namespace Common;
|
||||
|
||||
Keymapper *mapper = system.getEventManager()->getKeymapper();
|
||||
Keymap *globalMap = new Keymap("global");
|
||||
Keymap *globalMap = new Keymap(kGlobalKeymapName);
|
||||
Action *act;
|
||||
HardwareKeySet *keySet;
|
||||
|
||||
@ -294,7 +294,7 @@ static void setupKeymapper(OSystem &system) {
|
||||
|
||||
mapper->addGlobalKeymap(globalMap);
|
||||
|
||||
mapper->pushKeymap("global", true);
|
||||
mapper->pushKeymap(kGlobalKeymapName, true);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user