Commit Graph

24 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
Ken Thomases 01227ab267 winejoystick: Separate Linux-specific code into a separate file. 2015-03-18 21:00:22 +09:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Frédéric Delanoy 39afda4f6c winejoystick.drv: Use BOOL type where appropriate. 2013-11-28 11:17:35 +01:00
Francois Gouget c7cb3e6cb2 configure: Use errno.h instead of the non-standard sys/errno.h header. 2011-12-15 17:46:38 +01:00
Alexandre Julliard 6a4c47c98d winejoystick.drv: Remove unnecessary ifdefs. 2011-03-28 22:14:20 +02:00
Austin English 426c920264 winejoystick.drv: Fix a compiler warning on clang. 2010-09-20 13:57:18 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Francois Gouget 7649c75b40 Assorted typo and spelling fixes. 2010-06-24 10:37:05 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Rob Shearman 466b682dc6 winejoystick.drv: Use CP_UNIXCP instead of CP_ACP when converting a string that comes from the OS. 2009-02-19 12:51:43 +01:00
Vincent Pelletier a4b201a287 winejoystick.drv: Implement POV support. 2009-01-20 12:57:27 +01:00
Vincent Pelletier b04e8226e5 winejoystick.drv: Use JSIOCGAXMAP ioctl to correct axes mapping. 2009-01-20 12:57:11 +01:00
Vincent Pelletier 279690e3e7 winejoystick.drv: Fix file descriptor leak. 2009-01-20 12:55:52 +01:00
Vitaliy Margolen 9fbe249f3c winmm: Support more joysticks. 2008-10-27 11:28:39 +01:00
Andrew Talbot 1fd750cf31 winejoystick.drv: Remove unneeded address-of operator from array name. 2008-07-14 11:50:33 +02:00
Andrew Talbot 2d90d0d400 winejoystick.drv: Remove unneeded casts. 2008-02-11 19:55:34 +01:00
Austin English 65569206b2 Spelling fixes. 2008-01-10 12:16:31 +01:00
Alexandre Julliard f231a70f4c joystick.drv: Renamed the dlls/winmm/joystick directory to dlls/winejoystick.drv. 2006-12-29 14:29:20 +01:00