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: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Aric Stewart 2016-03-02 11:27:52 -06:00 committed by Alexandre Julliard
parent 381ce2956b
commit ae2ead16ce

View file

@ -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;
}
}