Showing the changes to interface/src/ui/UserInputMapper.cpp (1 of 2 files). Show all
Unified · Split
| @@ -50,7 +50,7 @@ void UserInputMapper::resetDevice(uint16 deviceID) { · 49 unmodified lines | ||
| 50 | 50 | |
| 51 | 51 | int UserInputMapper::findDevice(QString name) { |
| 52 | 52 | for (auto device : _registeredDevices) { |
| 53 | − if (device.second->_name == name) { | |
| 53 | + if (device.second->_name.split(" (")[0] == name) { | |
| 54 | 54 | return device.first; |
| 55 | 55 | } |
| 56 | 56 | } |