ANDROID: Remove old and broken keymapper code

This isn't needed after commit 665e472.
This commit is contained in:
Cameron Cawley 2020-01-20 13:54:41 +00:00
parent 274b166295
commit 24b9e9f390
3 changed files with 0 additions and 32 deletions

View File

@ -56,7 +56,6 @@
#include "common/config-manager.h"
#include "backends/audiocd/default/default-audiocd.h"
#include "backends/keymapper/keymapper.h"
#include "backends/mutex/pthread/pthread-mutex.h"
#include "backends/saves/default/default-saves.h"
#include "backends/timer/default/default-timer.h"
@ -332,10 +331,6 @@ void OSystem_Android::initBackend() {
else
ConfMan.setBool("swap_menu_and_back_buttons", false);
// must happen before creating TimerManager to avoid race in
// creating EventManager
setupKeymapper();
// BUG: "transient" ConfMan settings get nuked by the options
// screen. Passing the savepath in this way makes it stick
// (via ConfMan.registerDefault)

View File

@ -80,8 +80,6 @@ private:
Common::String getSystemProperty(const char *name) const;
void setupKeymapper();
protected:
virtual Common::EventSource *getDefaultEventSource() { return this; }

View File

@ -52,31 +52,6 @@ static inline T scalef(T in, float numerator, float denominator) {
static const int kQueuedInputEventDelay = 50;
void OSystem_Android::setupKeymapper() {
#ifdef ENABLE_KEYMAPPER
using namespace Common;
Keymapper *mapper = getEventManager()->getKeymapper();
HardwareInputSet *inputSet = new HardwareInputSet();
keySet->addHardwareInput(
new HardwareInput("n", KeyState(KEYCODE_n), "n (vk)"));
mapper->registerHardwareInputSet(inputSet);
Keymap *globalMap = new Keymap(kGlobalKeymapName);
Action *act;
act = new Action(globalMap, "VIRT", "Display keyboard");
act->addKeyEvent(KeyState(KEYCODE_F7, ASCII_F7, KBD_CTRL));
mapper->addGlobalKeymap(globalMap);
mapper->pushKeymap(kGlobalKeymapName);
#endif
}
void OSystem_Android::pushEvent(int type, int arg1, int arg2, int arg3,
int arg4, int arg5, int arg6) {
Common::Event e;