Rémi Bernon
b4b6c3af75
joy.cpl: Use the DIJOYSTATE2 user data format to support more buttons.
2023-02-13 17:02:45 +01:00
Rémi Bernon
bb9ee1e94a
joy.cpl: Improve the DInput button display with many buttons.
2023-02-13 17:02:45 +01:00
Rémi Bernon
91f7201d42
joy.cpl: Refresh the DInput button display on device change.
2023-02-13 17:02:45 +01:00
Rémi Bernon
37025bdabd
joy.cpl: Process messages while waiting for the input threads.
...
Instead of interrupting the wait on any message.
2023-02-13 17:02:45 +01:00
Alex Henrie
c160fe6fe7
joy: Correct spelling of "overridden".
2022-12-14 11:56:51 +01:00
Rémi Bernon
140456a058
joy.cpl: Remove unnecessary JoystickData structure.
2022-11-30 11:14:21 +01:00
Rémi Bernon
9d80a0ee79
joy.cpl: Move dinput test tab logic to dinput.c.
2022-11-30 11:14:07 +01:00
Rémi Bernon
e67b943983
joy.cpl: Draw dinput axes state with gdi32.
2022-11-30 11:14:03 +01:00
Rémi Bernon
792babb282
joy.cpl: Draw dinput button state with gdi32.
2022-11-30 11:13:14 +01:00
Rémi Bernon
a05df2e847
joy.cpl: Add a checkbox to test xinput rumble.
2022-11-30 11:12:29 +01:00
Rémi Bernon
3bc30c3723
joy.cpl: Draw xinput controller state with gdi32.
2022-11-30 11:11:41 +01:00
Rémi Bernon
3f4a799089
joy.cpl: Add a new xinput controller test tab.
2022-11-30 11:11:37 +01:00
Rémi Bernon
efe01bc7cb
joy.cpl: Build without NONAMELESSUNION.
2022-11-30 11:09:58 +01:00
Rémi Bernon
d645cd149b
joy.cpl: Use designated initializers in display_cpl_sheets.
2022-11-30 11:09:40 +01:00
Rémi Bernon
6375857829
joy.cpl: Add DI_ prefix to dinput dialog constants.
2022-11-30 11:09:36 +01:00
Rémi Bernon
77572690f5
joy.cpl: Merge the dinput test and force feedback tabs.
2022-11-29 19:11:18 +01:00
Rémi Bernon
8f61809690
joy.cpl: Reduce the button size on the device test tab.
2022-11-29 19:11:18 +01:00
Rémi Bernon
a2a8013687
joy.cpl: Use a notification event rather than polling state.
2022-11-29 19:11:18 +01:00
Rémi Bernon
eb00dd0db1
joy.cpl: Always start input threads and remove num_ff member.
2022-11-29 19:11:18 +01:00
Rémi Bernon
8c6e2a2d79
joy.cpl: Use a struct list to keep created dinput devices.
2022-11-29 19:11:18 +01:00
Rémi Bernon
2b706a00a3
joy.cpl: Move the device effect list to static global scope.
2022-11-29 19:11:18 +01:00
Rémi Bernon
c6cdea71cc
joy.cpl: Avoid race condition when accessing selected effect.
2022-11-28 11:38:39 +01:00
Rémi Bernon
b274278d0e
joy.cpl: Remove unnecessary joystick forcefeedback member.
2022-11-28 11:38:39 +01:00
Rémi Bernon
9b4cd90850
joy.cpl: Read the device path property instead of storing it.
2022-11-28 11:38:39 +01:00
Rémi Bernon
7e854933cd
joy.cpl: Read the number of buttons instead of storing it.
2022-11-28 11:38:39 +01:00
Rémi Bernon
b53df5dffb
joy.cpl: Read the device instance name instead of storing it.
2022-11-28 11:38:39 +01:00
Rémi Bernon
9d4a9e16a5
joy.cpl: Use a struct list to keep created device effects.
2022-11-28 11:38:39 +01:00
Rémi Bernon
1c94551ef8
joy.cpl: Read the effect DIEFFECTINFOW instead of storing it.
2022-11-28 11:38:39 +01:00
Rémi Bernon
d9bd1c49bb
joy.cpl: Read the effect parameters instead of storing them.
...
The direction and axis arrays are also not pointing to valid memory
anymore.
2022-11-28 11:38:39 +01:00
Rémi Bernon
85790d8379
joy.cpl: Use designated initializer to init effect params.
2022-11-28 11:38:39 +01:00
Rémi Bernon
ceea9b8721
joy.cpl: Move ff_effects_callback function around.
2022-11-28 11:38:39 +01:00
Rémi Bernon
e365242892
joy.cpl: Move constants and structures to main.c.
2022-11-28 11:38:39 +01:00
Floris Renaud
f3658e05be
joy.cpl: Resize text boxes.
...
Some translations need more space.
Signed-off-by: Floris Renaud <jkfloris@dds.nl>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-03 21:52:55 +02:00
Zhiyi Zhang
9ec0f8a3d5
joy.cpl: Enable visual styles.
...
joy.cpl uses manifest at ID 124. According to tests, manifest at ID 124 is not loaded automatically
by rundll32.exe or Control_RunDLL().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-13 18:15:48 +02:00
Eric Pouech
0b2fd91596
joy.cpl: Enable compilation with long types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-11 11:21:29 +01:00
Eric Pouech
1c374a7c51
joy.cpl: Use correct integral type.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-31 18:38:55 +01:00
Alexandre Julliard
f0cd33c69e
include: Add support for defining Win32 types as 'long' where possible.
...
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
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