diff options
| author | a1xd <[email protected]> | 2021-04-26 22:00:51 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-04-26 22:00:51 -0400 |
| commit | 8de054735f51c6b933f4fadf7e7aa63c11971a68 (patch) | |
| tree | 08e8670d7da12ba24e4dda191df11096e09d83ab /grapher/Models/Devices | |
| parent | ignore GetRawInputDeviceInfo errors (diff) | |
| download | rawaccel-8de054735f51c6b933f4fadf7e7aa63c11971a68.tar.xz rawaccel-8de054735f51c6b933f4fadf7e7aa63c11971a68.zip | |
refactor rawinput util
some generalizations here don't make sense now that we're ignoring errors
Diffstat (limited to 'grapher/Models/Devices')
| -rw-r--r-- | grapher/Models/Devices/DeviceIDManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grapher/Models/Devices/DeviceIDManager.cs b/grapher/Models/Devices/DeviceIDManager.cs index 8592763..39856a1 100644 --- a/grapher/Models/Devices/DeviceIDManager.cs +++ b/grapher/Models/Devices/DeviceIDManager.cs @@ -46,9 +46,9 @@ namespace grapher.Models.Devices if (found) SetActive(anyDevice); - foreach (var (name, id) in RawInputInterop.GetDeviceIDs()) + foreach (string id in RawInputInterop.GetDeviceIDs()) { - var deviceItem = new DeviceIDItem(name, id, this); + var deviceItem = new DeviceIDItem(string.Empty, id, this); if (!found && deviceItem.ID.Equals(devID)) { SetActive(deviceItem); |