From 5d0fec5592641aff4b8a4ce5da269fa38edf7219 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Mon, 26 Apr 2021 22:14:00 -0400 Subject: ignore errors when trying to retrieve dev list might be a good idea to add logging here, not much else we can do if this fails --- common/utility-rawinput.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/utility-rawinput.hpp b/common/utility-rawinput.hpp index 80d305b..c3a4576 100644 --- a/common/utility-rawinput.hpp +++ b/common/utility-rawinput.hpp @@ -27,7 +27,7 @@ void rawinput_foreach_dev_with_id(Func fn, bool with_instance_id = false, auto devs = std::vector(num_devs); if (GetRawInputDeviceList(&devs[0], &num_devs, sizeof(RAWINPUTDEVICELIST)) == RI_ERROR) { - throw std::system_error(GetLastError(), std::system_category(), "GetRawInputDeviceList failed"); + return; } std::wstring name; -- cgit v1.2.3