23 Dec
2022
23 Dec
'22
10:42 p.m.
Rémi Bernon (@rbernon) commented about dlls/dinput/mouse.c:
return DI_OK; }
+static BOOL init_object_properties( const DIDEVICEOBJECTINSTANCEW *instance, void *data ) +{ + struct mouse *impl = (struct mouse *)data; + struct object_properties *properties = impl->base.object_properties + instance->dwOfs / sizeof(LONG); + + properties->range_min = DIPROPRANGE_NOMIN; + properties->range_max = DIPROPRANGE_NOMAX; + + /* The z-axis (wheel) has a different granularity */ + if ( instance->dwOfs == DIMOFS_Z )
Mind removing the spaces in the if paren there?
From a very quick glance it looks good otherwise, except for the pipeline failure.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1887#note_20134