Fix bug with unthrottle as virtual key. Add button to restore default key mappings.

This commit is contained in:
Henrik Rydgard committed 2013-07-07 11:25:19 +02:00
1 parent 1256d5528d
commit 47dae8c004
4 files changed
+9 -2

No files matched your search

+3
View File
@@ -412,6 +412,9 @@ void SetKeyMapping(int map, int deviceId, int key, int btn)
controllerMaps[map].keys[KeyDef(deviceId, key)] = btn;
}
void RestoreDefault() {
controllerMaps = DefaultKeyMap::KeyMap;
}
// TODO: Make the ini format nicer.
void LoadFromIni(IniFile &file) {