diff options
| author | a1xd <[email protected]> | 2021-01-05 18:05:48 -0500 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-01-05 18:05:48 -0500 |
| commit | 6969310edd56edb555dd98acbc1478caa5728593 (patch) | |
| tree | 52915ea646db380cad119c17c484660b38ff8724 /common | |
| parent | Update driver/driver.h (diff) | |
| download | rawaccel-6969310edd56edb555dd98acbc1478caa5728593.tar.xz rawaccel-6969310edd56edb555dd98acbc1478caa5728593.zip | |
size device id/hwids based on docs
this also changes the connect ioctl to not abort when hwid query fails
Diffstat (limited to 'common')
| -rw-r--r-- | common/rawaccel-settings.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/rawaccel-settings.h b/common/rawaccel-settings.h index c9bd247..f94e960 100644 --- a/common/rawaccel-settings.h +++ b/common/rawaccel-settings.h @@ -3,6 +3,8 @@ #include "vec2.h" #include "accel-base.hpp" +#define MAX_HWID_LEN 200 + namespace rawaccel { using milliseconds = double; @@ -23,7 +25,7 @@ namespace rawaccel { vec2d sens = { 1, 1 }; vec2d dir_multipliers = {}; milliseconds time_min = DEFAULT_TIME_MIN; - wchar_t device_hw_id[512] = {0}; + wchar_t device_hw_id[MAX_HWID_LEN] = {0}; }; } |