From 8de054735f51c6b933f4fadf7e7aa63c11971a68 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Mon, 26 Apr 2021 22:00:51 -0400 Subject: refactor rawinput util some generalizations here don't make sense now that we're ignoring errors --- grapher/Models/Devices/DeviceIDManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grapher/Models') 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); -- cgit v1.2.3