Commit Graph

15 Commits

Author SHA1 Message Date
Michael Stefaniuc 4233bd7570 winejoystick.drv: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:16:02 +02: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