mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-17 15:37:39 +00:00
Implement platform specific keymap registration
This commit is contained in:
parent
c2cf28e4b8
commit
cbbed0f18b
@ -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;
|
||||
}
|
||||
|
||||
|
@ -185,5 +185,6 @@ namespace KeyMap {
|
||||
* Any buttons missing will
|
||||
* fallback to KeyMap's keymap. */
|
||||
static int RegisterPlatformDefaultKeyMap(std::map<int,int> *);
|
||||
static void DeregisterPlatformDefaultKeyMap(void);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user