mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-18 08:50:29 +02:00
Implement platform specific keymap registration
This commit is contained in:
1 parent
c2cf28e4b8
commit
cbbed0f18b
2 files changed
+15
-1
No files matched your search
+14
-1
@@ -282,4 +282,17 @@ static int KeyMap::SetKeyMapping(KeyMap::Key key, int btn)
|
||||
g_Config.iMappingMap[key] = btn;
|
||||
}
|
||||
|
||||
// TODO: implement RegisterPlatformDefaultKeyMap()
|
||||
static int KeyMap::RegisterPlatformDefaultKeyMap(std::map<int,int> *overriding_map)
|
||||
{
|
||||
if (overriding_map == NULL)
|
||||
return 1;
|
||||
platform_keymap = overriding_map;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void KeyMap::DeregisterPlatformDefaultKeyMap(void)
|
||||
{
|
||||
platform_keymap = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user