When using controller autoconf on PC, throw in a couple of useful keyboard mappings too.

See #7399
This commit is contained in:
Henrik Rydgard 2015-02-04 11:52:13 +01:00
parent 2f6216d787
commit a8a7adc85f

View file

@ -953,6 +953,12 @@ void AutoConfForPad(const std::string &name) {
} else {
SetDefaultKeyMap(DEFAULT_MAPPING_PAD, true);
}
#ifndef MOBILE_DEVICE
// Add a couple of convenient keyboard mappings by default, too.
g_controllerMap[VIRTKEY_PAUSE].push_back(KeyDef(DEVICE_ID_KEYBOARD, NKCODE_ESCAPE));
g_controllerMap[VIRTKEY_UNTHROTTLE].push_back(KeyDef(DEVICE_ID_KEYBOARD, NKCODE_TAB));
#endif
}
const std::set<std::string> &GetSeenPads() {