18 Dec
2025
18 Dec
'25
1:34 p.m.
Tomasz Pakuła (@Lawstorant) commented about dlls/winebus.sys/hid.c:
return TRUE; }
-static BOOL hid_device_add_axis_count(struct unix_device *iface, BOOL rel, BYTE count, +static BYTE hid_device_determine_axis_size(LONG min, LONG max) +{ + if (min >= -128 && max <= 127) return 8; + if (min >= -32768 && max <= 32767) return 16;
Instead of raw values, I'd go for INT8_MIN, UINT8_MAX, INT16_MIN, UINT16_MAX -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9789#note_125805