dinput: Remove redundant check for DIEP_DIRECTION.
It is implied from the complete_mask check above. Signed-off-by: Ivo Ivanov <logos128@gmail.com> Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fbd7356232
commit
f486811d5a
|
@ -2698,8 +2698,6 @@ static HRESULT WINAPI hid_joystick_effect_Download( IDirectInputEffect *iface )
|
|||
set_parameter_value_us( impl, impl->effect_update_buf, effect_update->trigger_repeat_interval_caps,
|
||||
impl->params.dwTriggerRepeatInterval );
|
||||
|
||||
if (impl->flags & DIEP_DIRECTION)
|
||||
{
|
||||
count = 1;
|
||||
usage = PID_USAGE_DIRECTION_ENABLE;
|
||||
status = HidP_SetUsages( HidP_Output, HID_USAGE_PAGE_PID, 0, &usage, &count,
|
||||
|
@ -2716,7 +2714,6 @@ static HRESULT WINAPI hid_joystick_effect_Download( IDirectInputEffect *iface )
|
|||
caps = effect_update->direction_caps[effect_update->direction_count - i - 1];
|
||||
set_parameter_value( impl, impl->effect_update_buf, caps, tmp % 36000 );
|
||||
}
|
||||
}
|
||||
|
||||
status = HidP_SetUsageValue( HidP_Output, HID_USAGE_PAGE_PID, 0, PID_USAGE_TRIGGER_BUTTON,
|
||||
impl->params.dwTriggerButton, impl->joystick->preparsed,
|
||||
|
|
Loading…
Reference in New Issue