30 Jan
2024
30 Jan
'24
10:14 a.m.
Rémi Bernon (@rbernon) commented about dlls/winebus.sys/hid.c:
*/ static void hatswitch_decompose(BYTE value, LONG *x, LONG *y) { *x = *y = 0; What about passing the index here?
```suggestion:-2+0 static void hatswitch_decompose(BYTE value, UINT index, LONG *x, LONG *y) { value = (index % 2) ? (value >> 4) : (value & 0x0f); *x = *y = 0; ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4964#note_59484