Commit cab33687 authored by Aric Stewart's avatar Aric Stewart Committed by Michael Stefaniuc

winejoystick.drv: Initialize unhandled dwPOV to JOY_POVCENTERED.

This is a fix for broken applications that do not bother to check the flags to see if JOY_RETURNPOV is set and instead blindly read dwPOV. The previous value of 0 resulted in the POV appearing to be constantly in the UP position. Signed-off-by: 's avatarAric Stewart <aric@codeweavers.com> Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit ae2ead16) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent dbab6979
......@@ -715,7 +715,7 @@ LRESULT driver_joyGetPosEx(DWORD_PTR device_id, JOYINFOEX* info)
}
else
{
info->dwPOV = 0;
info->dwPOV = JOY_POVCENTERED;
info->dwFlags &= ~JOY_RETURNPOV;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment