Commit Graph

35 Commits

Author SHA1 Message Date
Bruno Jesus caaedf1cd6 winejoystick.drv: Test for new joysticks in intervals of 2 seconds.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 23:53:45 +09:00
Bruno Jesus 62876f3fc5 winejoystick.drv: Don't assume the first joystick is at the first device on Linux.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-16 12:01:25 +09:00
David Lawrie 4165674742 winejoystick.drv: Sort virtual joysticks by name on the Mac.
Signed-off-by: David Lawrie <david.dljunk@gmail.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-25 14:22:23 +09:00
David Lawrie b69b9a6ead winejoystick.drv: Sort devices by location ID on the Mac.
Signed-off-by: David Lawrie <david.dljunk@gmail.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-14 17:40:10 +09:00
David Lawrie c6b3e34b84 winejoystick.drv: Print location ID in debugstr_device on the Mac.
Signed-off-by: David Lawrie <david.dljunk@gmail.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-14 17:40:10 +09:00
David Lawrie fe88161a2a winejoystick.drv: Ignore feature elements.
"Describes input and output elements not intended for consumption by the
end user."  Ignore, as otherwise, comes up as a FIXME in Trace logs.

Signed-off-by: David Lawrie <david.dljunk@gmail.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:15 +09:00
David Lawrie 9dcfb97515 winejoystick.drv: Remove ignore axis input type.
In case Sim page Throttle, Brake, etc ... are type Axis not Misc, no
longer ignoring Axis type.

Signed-off-by: David Lawrie <david.dljunk@gmail.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:12 +09:00
David Lawrie dd37dc4a3e winejoystick.drv: Add sim page element controls.
Support for input features defined by HID Simulation page: Rudder
(Rz), Throttle (Z), Steering (X), Accelerator (Y), Brake (Rz).

Signed-off-by: David Lawrie <david.dljunk@gmail.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:09 +09:00
David Lawrie f457f25b71 winejoystick.drv: Fix Slider mapping.
Sliders, Dials, and Wheels now map to Z, U (Ry), or V (Rx) depending on
availability. Thus, also add support for up to 3 such HID elements.

Signed-off-by: David Lawrie <david.dljunk@gmail.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:05 +09:00
David Lawrie 5ea6200fc8 winejoystick.drv: Fix Ry/Rx -> U/V axes mapping.
Signed-off-by: David Lawrie <david.dljunk@gmail.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:01 +09:00
David Lawrie e06bbf0d54 winejoystick.drv/joystick_osx.c: Adds multi-axis controller.
Signed-off-by: David Lawrie <david.dljunk@gmail.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-14 12:16:37 +09:00
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