28 Aug
2024
28 Aug
'24
6:49 a.m.
On Wed Aug 28 06:49:19 2024 +0000, Rémi Bernon wrote:
```suggestion:-6+0 memset(value, 0, sizeof(*value)); if (impl->state_changed || memcmp( impl->initial_state.axes, state.axes, sizeof(state) - offsetof(struct WineGameControllerState, axes) )) { impl->state_changed = TRUE; if (state.buttons[0]) value->Buttons |= GamepadButtons_A; ``` (Use `offsetof(struct WineGameControllerState, axes)`, style is a bit more of a nit.)
Thanks @rbernon -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6380#note_80234