Commit Graph

60 Commits

Author SHA1 Message Date
Arkadiusz Hiler 30a026d245 setupapi: Use lowercase device paths.
Some games are doing case sensitive matches on the device paths obtained from
Setup API and expect them to be lowercase.

This fixes Virginia not being able to discover DualShock 4.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-23 22:57:01 +01:00
Ivo Ivanov c2235c44c5 joy.cpl: Allow devices as steering wheels, that only support single-axis effects.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51873
Signed-off-by: Ivo Ivanov <logos128@gmail.com>
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-19 18:31:38 +01:00
Rémi Bernon 960bb36941 joy.cpl: Better handle effect creation errors.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51873
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-14 18:59:52 +02:00
Rémi Bernon f101712510 joy.cpl: Consistently use the 32 buttons limit from DIJOYSTATE.
Based on a patch from Ivo Ivanov <logos128@gmail.com>.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51873
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-14 18:59:52 +02:00
Rémi Bernon 13813894f2 joy.cpl: Pass DIEFF_OBJECTOFFSETS flag to IDirectInputEffect_SetParameters.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-06 20:29:34 +02:00
Rémi Bernon 06c824c02a joy.cpl: Acquire the device before starting effect.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-06 20:29:34 +02:00
Rémi Bernon afd63fa6a7 joy.cpl: Add a XInput / DInput override configuration control.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-24 21:55:19 +02:00
Rémi Bernon cf2e17e8ba joy.cpl: Add a dedicated connected list for xinput devices.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-24 21:55:19 +02:00
Rémi Bernon c496a7b3f9 joy.cpl: Refresh the joystick device list when modified.
This will not work for legacy dinput devices because of the internal
enumeration logic, but it will dynamically update the list for HID
joysticks.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-23 18:12:28 +02:00
Rémi Bernon a6f7f2dcfb joy.cpl: Refresh joystick FF device list when activated.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-23 18:12:25 +02:00
Rémi Bernon 95cc64aa73 joy.cpl: Refresh joystick test device list when activated.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-23 18:12:21 +02:00
Rémi Bernon 5fad09d246 joy.cpl: Enumerate force-feedback effects with the devices.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-23 18:12:18 +02:00
Rémi Bernon 032052fca6 joy.cpl: Use msvcrt wide string functions.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-23 18:12:13 +02:00
Rémi Bernon 0a777f0bcc joy.cpl: Use msvcrt memory allocation functions.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-23 18:12:07 +02:00
Alexandre Julliard 088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Alexandre Julliard ec9a3d9906 joy.cpl: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-26 10:25:59 +01:00
Michael Stefaniuc 6d2c845db4 joy.cpl: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-07 11:24:12 +02:00
Torge Matthies 25e9e91c3a joy.cpl: Fix pulsing buttons in joystick button state display.
Signed-off-by: Torge Matthies <openglfreak@googlemail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-05 19:32:18 +02:00
Vincent Povirk 41e9ba8210 joy.cpl: Add a description.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-11 13:32:43 +02:00
Alexandre Julliard 0af6002a3b joy.cpl: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-06 11:15:24 +02:00
Tim Schumacher f5bf3630db joy.cpl: Fix high CPU load in FF test window.
If no effects are in the effects list, the loop in ff_input_thread
is immediately restarted, skipping the poll interval. This causes an
incredibly high refresh rate, which maxes out at least one CPU core.

Signed-off-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 20:38:00 +02:00
Tim Schumacher 8bc52f5250 joy.cpl: Check if effect is allocated before releasing it.
Signed-off-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 20:34:38 +02:00
Michael Stefaniuc 3e610753a8 joy.cpl: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:16:01 +02:00
Alexandre Julliard 80a19b613f joy.cpl: Add a 256x256 icon.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 17:17:17 +02:00
Aric Stewart afb9de281e joy.cpl: Add parameters for Condition FF effects.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-19 12:12:03 +01:00
Fabian Maurer 2842d837d4 joy.cpl: Use proper size for combobox controls.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-31 18:55:36 +02:00
Austin English 83bc9c85e4 joy.cpl: Sync spec file to Windows 10.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 19:57:18 +02:00
Sebastian Lackner 1224bfaa35 joy.cpl: Use variable of correct type to store LSTATUS value.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-13 22:41:03 +09:00
Bruno Jesus 4189095d87 joy.cpl: Display the correct number of button boxes during test.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-23 12:07:26 +09:00
Alexandre Julliard 3494fb7f72 kernel32: Avoid resolving imports against the advapi32 forwards. 2015-06-10 15:26:05 +09:00
Michael Stefaniuc 721c502db9 joy.cpl: Avoid pointers to out of scope variables (PVS-Studio). 2014-12-04 14:03:33 +01: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 37d1753a5d joy.cpl: Constify some character strings. 2013-12-17 08:45:36 +01:00
Alexandre Julliard 4f3d71cef3 makefiles: Get rid of the no longer used PO_SRCS variables. 2013-12-15 10:23:04 +01:00
Alexandre Julliard 5756ee09f3 makefiles: Add makedep pragmas for rc files that contain translations. 2013-11-05 20:38:19 +01:00
Alexandre Julliard 4dc12c4e39 joy.cpl: Use neutral language for the version resource. 2013-07-09 22:21:58 +02:00
Alexandre Julliard 6528aff97b joy.cpl: Return the correct id for the icon. 2013-06-06 11:33:10 +02:00
Gurmail Bassi fbed1f7a80 joy.cpl: Fixed incorrect variable reference. 2013-04-22 12:33:30 +02:00
Joel Holdsworth 4e25cd462e joy.cpl: Added a Tango compliant icon. 2013-04-04 12:18:36 +02:00
Andrew Talbot 3e2c44af7d joy.cpl: Avoid signed-unsigned integer comparisons. 2013-03-11 10:42:56 +01:00
Marcus Meissner bf8c45f3ed joy.cpl: Added missing break; (Coverity). 2012-09-03 17:43:58 +02:00
Lauri Kenttä bc62a82f85 joy.cpl: Make Enable/Disable buttons wider for translations. 2012-08-27 11:30:32 +02:00
Lucas Zawacki 78c8fe0db2 joy.cpl: Disable joysticks using joy.cpl. 2012-08-24 11:30:59 +02:00
Lucas Zawacki e3af37eb1c joy.cpl: Prevent crash on IDirectInputEffect_Release. 2012-08-21 17:47:45 +02:00
Marcus Meissner f51b6e7847 joy.cpl: Avoid uninitialized variable usage (Coverity). 2012-08-20 10:55:53 +02:00
Lucas Zawacki fc944144e3 joy.cpl: Correct misplaced elements when using high DPIs. 2012-08-14 12:00:49 +02:00
Lucas Zawacki dd3e54d496 joy.cpl: Better arrangement of elements even with higher DPIs. 2012-08-13 11:46:37 +02:00
Lucas Zawacki fb939873ba joy.cpl: Remove uneeded FIXME message. 2012-08-13 11:46:29 +02:00
Lucas Zawacki 0204b30e84 joy.cpl: Added force feedback direction control. 2012-07-17 12:49:49 +02:00
Lucas Zawacki 37ce970629 joy.cpl: Tab for force feedback tests. 2012-07-17 12:49:16 +02:00