History

fix findDevice

Sam Gondelman committed 11 years ago

Commit 01579971 parent a37b0892 files · +2 −2Browse files

Showing the changes to interface/src/ui/UserInputMapper.cpp (1 of 2 files). Show all

Unified · Split

interface/src/ui/UserInputMapper.cpp+1−1
@@ -50,7 +50,7 @@ void UserInputMapper::resetDevice(uint16 deviceID) { · 49 unmodified lines
5050
5151 int UserInputMapper::findDevice(QString name) {
5252 for (auto device : _registeredDevices) {
53− if (device.second->_name == name) {
53+ if (device.second->_name.split(" (")[0] == name) {
5454 return device.first;
5555 }
5656 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t