Arkadiusz Hiler
6b777d0b20
dinput8: Use scan codes to test uAppData.
...
Virtual key codes are layout dependant while direct input works with
scan codes.
Using virtual key code for 'A' with AZERTY layout resulted in scan code
for 'Q' being sent out, which in turn made the tests fail.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50987
Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-26 21:29:38 +02:00
Arkadiusz Hiler
8d206333fd
dinput: Implement DIPROP_APPDATA.
...
This fixes not working analog inputs on game controllers in Slay the Spire.
Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-10 20:44:41 +01:00
Arkadiusz Hiler
542f613456
dinput: Clear action mapping with SetDataFormat().
...
Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-10 20:44:18 +01:00
Arkadiusz Hiler
d3e7e0426c
dinput8/tests: Make input helper function more versatile.
...
test_device_input() now takes properly sized appdata expected value and
can be used to send any keyboard event. It also drains device's queue so
it can be called multiple times on a single device instance.
Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-10 20:44:10 +01:00
Michael Stefaniuc
21e3ba96f8
dinput8/tests: 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
Rémi Bernon
81d1c79dcd
dinput8: Use rawinput interface for mouse device.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-13 21:17:17 +02:00
Rémi Bernon
03ad3ca17a
dinput8/tests: Add DISCL_EXCLUSIVE / rawinput test.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-13 21:17:13 +02:00
Rémi Bernon
1e7378d80c
user32: Implement GetRegisteredRawInputDevices.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-13 21:17:11 +02:00
Brendan Shanks
f65cfbfe9b
dinput: Fix DInput8 keyboard behavior for injected events with scancode=0.
...
Grand Theft Auto IV injects VK_F8 and scancode=0, and expects DirectInput not
to report that F8 is pressed.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-21 22:54:26 +02:00
Brendan Shanks
d5fd3c8a38
dinput: Block Acquire() until hooks are installed to prevent input being lost.
...
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-21 22:54:26 +02:00
Brendan Shanks
f042ba4991
dinput8/tests: Test injecting keyboard events.
...
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-13 12:15:03 +02:00
Francois Gouget
1bc90ab802
dinput8/tests: A spelling fix in a comment.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:56 +02:00
Rémi Bernon
e001daf5c1
dinput8/tests: Add window name and window class name test.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-27 21:54:52 +02:00
Rémi Bernon
2f51ebd961
dinput8/tests: Add test to validate interactions between dinput8 and raw input devices.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-27 21:54:50 +02:00
Sven Baars
76cbd21c5a
dinput8/tests: Fix some memory leaks (Valgrind).
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-21 16:06:33 +01:00
Michael Stefaniuc
91c3e8ebac
dinput8/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 11:41:59 +02:00
Jetro Jormalainen
967399eba0
dinput: Keep username same between device objects.
...
Signed-off-by: Jetro Jormalainen <jje-wine@jv.jetro.fi>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-03 20:43:39 +01:00
Bernhard Übelacker
86cdf0b1cb
dinput8/tests: Add valid wide string termination to actionName member.
...
Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-05 09:07:12 -05:00
Bernhard Übelacker
fbc85ddc28
dinput: Implement device property DIPROP_USERNAME.
...
Signed-off-by: Bernhard Übelacker <bernhardu@vr-web.de>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-31 15:57:32 +09:00
Piotr Caban
8d5b1dd502
dinput8: Create a window that will receive events generated by input tests.
2014-03-07 11:30:27 +01:00
Andrey Gusev
add85f4687
Assorted typos fixes.
2014-02-12 19:15:32 +01:00
André Hentschel
7ddb8e25bb
dinput8/tests: Enable compilation with -D__WINESRC__.
2013-11-11 13:27:27 +01:00
Lucas Zawacki
d5e9cedaf5
dinput: BuildActionMap should not fail if mapping has no pre-stored settings.
2012-08-28 14:41:04 +02:00
Lucas Zawacki
851d38c4ef
dinput8/tests: Test load actions when there's no pre-stored ones.
2012-08-28 14:41:02 +02:00
Lucas Zawacki
af1dcde288
dinput: SetActionMap saving mappings.
2012-08-27 11:13:15 +02:00
Lucas Zawacki
77cab1ce98
dinput8/tests: Added tests for saving and retrieving settings with SetActionMap.
2012-08-27 11:12:23 +02:00
Józef Kucia
42235c3cc9
dinput8/tests: Use CLSCTX_INPROC_SERVER instead of a magic number.
2012-03-26 18:15:05 +02:00
Lucas Fialho Zawacki
46e408d54c
dinput8/tests: Tests for DIPROP_USERNAME property.
2011-10-25 16:57:28 +02:00
Lucas Fialho Zawacki
32f79acc49
dinput8/tests: Moved EnumDevicesBySemantics specific tests to dinput.c and added a couple more.
2011-10-25 16:57:28 +02:00
Vitaliy Margolen
aba1ed78da
dinput: Put some checks back into GetDeviceData for DirectInput 8.
2011-10-17 17:45:02 +02:00
Francois Gouget
ed3c9a1eca
Assorted spelling fixes.
2011-08-03 14:15:48 +02:00
Lucas Fialho Zawacki
8cc44cb8c3
dinput: SetActionMap setting the axis range according to the action format.
2011-07-22 12:57:22 +02:00
Lucas Fialho Zawacki
bc5d32bec6
dinput: EnumDevicesBySemantics enumerating all kinds of joysticks.
2011-07-12 11:37:36 +02:00
Lucas Fialho Zawacki
662d332246
dinput: Prevent EnumDevicesBySematics from enumerating keyboard and mouse as having force feedback.
2011-07-11 12:24:55 +02:00
Lucas Fialho Zawacki
a85f66e7a7
dinput8/tests: Tests for EnumDevicesBySemantics with different enumeration flags.
2011-07-11 12:24:06 +02:00
Andrew Nguyen
cf073c8ad4
dinput8: Improve the behavior of DirectInput8Create.
2011-07-06 11:13:53 +02:00
Lucas Fialho Zawacki
39684c7e3a
dinput: SetActionMap and queue_event setting mapped data.
2011-07-04 20:25:00 +02:00
Lucas Fialho Zawacki
b590090a48
dinput: SetActionMap constructing a dataformat for keyboard and mouse.
2011-07-04 20:24:48 +02:00
Lucas Fialho Zawacki
83aded2754
dinput: Keyboard and mouse implementation of BuildActionMap.
2011-07-04 20:24:10 +02:00
Lucas Fialho Zawacki
542a2849c0
dinput8/tests: BuildActionMap and input tests for mouse.
2011-07-04 20:23:09 +02:00
Lucas Fialho Zawacki
2fe9f14b29
dinput: SetActionMap setting the device buffer.
2011-06-28 16:45:56 -05:00
Lucas Fialho Zawacki
636cc9acff
dinput8/tests: Testing BuildActionMap and SetActionMap with keyboard input.
2011-06-28 16:45:56 -05:00
Lucas Fialho Zawacki
0f17c828f7
dinput: EnumDevicesBySemantics enumerating keyboard and mouse with priority flags.
2011-06-28 16:45:55 -05:00
Lucas Fialho Zawacki
3ed476caac
dinput8/tests: Test EnumDevicesBySemantics mouse and keyboard enumeration with flags.
2011-06-28 16:45:55 -05:00
Lucas Fialho Zawacki
1fbf857dc1
dinput8/tests: Tests for creation and initialization of DInput8 interface and simple cases of EnumDevicesBySemantics.
2011-05-02 12:58:51 +02:00