Commit Graph

5 Commits

Author SHA1 Message Date
Aric Stewart 2281a7bd7c winejoystick.drv: Gracefully handle polling an unplugged device.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 13:00:47 +09:00
Aric Stewart ae2ead16ce 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>
2016-03-03 12:59:15 +09:00
Ken Thomases edad520235 winmm: For Mac, fix joyGetPosEx() to put number of buttons pressed in dwButtonNumber field.
Based on behavior of Windows revealed by interactive tests added by Bruno Jesus.
2015-03-24 13:51:01 +09:00
Ken Thomases 77432ac45d winejoystick: Fix a crash on accessing a CFArray past its end due to an off-by-one error in the Mac code. 2015-03-19 14:06:35 +09:00
Ken Thomases 65711634ce winejoystick: Add WinMM joystick support for OS X. 2015-03-18 21:00:34 +09:00