Implement platform specific keymap registration

This commit is contained in:
danieru committed 2013-04-20 13:01:15 -06:00
1 parent c2cf28e4b8
commit cbbed0f18b
2 files changed
+15 -1

No files matched your search

+14 -1
View File
@@ -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;
}