diff options
| author | a1xd <[email protected]> | 2021-04-26 22:14:00 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-04-26 22:14:00 -0400 |
| commit | 5d0fec5592641aff4b8a4ce5da269fa38edf7219 (patch) | |
| tree | 715332622da369784e6460ec5728c2941f31c577 /common | |
| parent | match error handling in MS raw input docs (diff) | |
| download | rawaccel-5d0fec5592641aff4b8a4ce5da269fa38edf7219.tar.xz rawaccel-5d0fec5592641aff4b8a4ce5da269fa38edf7219.zip | |
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
Diffstat (limited to 'common')
| -rw-r--r-- | common/utility-rawinput.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<RAWINPUTDEVICELIST>(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; |