KEYMAPPER: Fix broken implementation of findHardwareKey()
This fixes the keymapper dialog (at least on desktop platforms), but the keymapper itself is still not working (tested with LoL)
This commit is contained in:
parent
5c9da28119
commit
410c9e0b30
2 changed files with 8 additions and 4 deletions
|
@ -145,7 +145,7 @@ void Keymap::loadMappings(const HardwareKeySet *hwKeys) {
|
|||
const HardwareKey *hwKey = hwKeys->findHardwareKey(it->_value.c_str());
|
||||
|
||||
if (!hwKey) {
|
||||
warning("HardwareKey with ID %s not known", it->_value.c_str());
|
||||
warning("HardwareKey with ID '%s' not known", it->_value.c_str());
|
||||
_configDomain->erase(key);
|
||||
continue;
|
||||
}
|
||||
|
@ -199,7 +199,7 @@ bool Keymap::isComplete(const HardwareKeySet *hwKeys) {
|
|||
// - if an action finds a key with required type but a parent action with
|
||||
// higher priority is using it, that key is never used
|
||||
void Keymap::automaticMapping(HardwareKeySet *hwKeys) {
|
||||
#if 0 //disabling the broken automapper for now
|
||||
#if 1 //disabling the broken automapper for now
|
||||
// Create copies of action and key lists.
|
||||
List<Action*> actions(_actions);
|
||||
List<const HardwareKey*> keys(hwKeys->getHardwareKeys());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue