mirror of
https://github.com/reactos/wine.git
synced 2025-02-20 21:03:39 +00:00
dinput: Use a properly initialized format in SetProperty.
This commit is contained in:
parent
188b39ab2b
commit
c34b7b1313
@ -301,7 +301,7 @@ HRESULT WINAPI JoystickWGenericImpl_SetProperty(LPDIRECTINPUTDEVICE8W iface, REF
|
||||
remap_props.lMin = pr->lMin;
|
||||
remap_props.lMax = pr->lMax;
|
||||
|
||||
switch (This->base.data_format.offsets[i]) {
|
||||
switch (This->base.data_format.wine_df->rgodf[i].dwOfs) {
|
||||
case DIJOFS_X : This->js.lX = joystick_map_axis(&remap_props, This->js.lX); break;
|
||||
case DIJOFS_Y : This->js.lY = joystick_map_axis(&remap_props, This->js.lY); break;
|
||||
case DIJOFS_Z : This->js.lZ = joystick_map_axis(&remap_props, This->js.lZ); break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user