On Wed Aug 28 06:49:19 2024 +0000, Rémi Bernon wrote:
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