Commit ae2ead16 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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>
parent 381ce295
...@@ -715,7 +715,7 @@ LRESULT driver_joyGetPosEx(DWORD_PTR device_id, JOYINFOEX* info) ...@@ -715,7 +715,7 @@ LRESULT driver_joyGetPosEx(DWORD_PTR device_id, JOYINFOEX* info)
} }
else else
{ {
info->dwPOV = 0; info->dwPOV = JOY_POVCENTERED;
info->dwFlags &= ~JOY_RETURNPOV; 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