mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
Add mechanism for unlimited mappable virtual keys (not restricted by some bitfield). Use it to implement X/Y analog key mapping.
This commit is contained in:
1 parent
cc58e34cf8
commit
b0ee3a173a
8 files changed
+197
-82
No files matched your search
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
#include "base/display.h"
|
||||
#include "Common/KeyMap.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Config.h"
|
||||
#include "file/ini_file.h"
|
||||
@@ -167,6 +168,8 @@ void Config::Load(const char *iniFileName)
|
||||
debugConfig->Get("ConsoleWindowX", &iConsoleWindowX, -1);
|
||||
debugConfig->Get("ConsoleWindowY", &iConsoleWindowY, -1);
|
||||
|
||||
KeyMap::LoadFromIni(iniFile);
|
||||
|
||||
CleanRecent();
|
||||
}
|
||||
|
||||
@@ -275,6 +278,8 @@ void Config::Save()
|
||||
debugConfig->Set("ConsoleWindowX", iConsoleWindowX);
|
||||
debugConfig->Set("ConsoleWindowY", iConsoleWindowY);
|
||||
|
||||
KeyMap::SaveToIni(iniFile);
|
||||
|
||||
if (!iniFile.Save(iniFilename_.c_str())) {
|
||||
ERROR_LOG(LOADER, "Error saving config - can't write ini %s", iniFilename_.c_str());
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user