Commit Graph

24 Commits

Author SHA1 Message Date
Michael Stefaniuc 4fbd3a7c3a xinput/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-30 09:11:31 +02:00
Andrew Eikum de3591ca98 xinput: XInputGetStateEx takes the same struct as XInputGetState.
XINPUT_STATE_EX has four extra bytes for padding, but is otherwise
identical to XINPUT_STATE. It was introduced in a libSDL header in
2012, for use with the undocumented function at xinput ordinal 100,
which we call XInputGetStateEx.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 22:26:47 +01:00
Bruno Jesus 6b88529b3c xinput1_3/tests: Add interactive tests.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-14 17:33:02 +01:00
Bruno Jesus 4989d8727f xinput1_3/tests: Improve vibration tests.
Specially the part to disable the vibration after the test. Manually
tested on Windows 8.

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 11:38:06 +01:00
Bruno Jesus 547d9491af xinput1_3/tests: Explain an important test and fix remaining style issues.
It's important to explain why the test is done like that so in the
future nobody changes it without knowing the impacts.

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-07 14:45:18 +01:00
Bruno Jesus 67eec14ca0 xinput1_3/tests: Dump the gamepad values from XInputGetCapabilities.
Important to show that they changed between XInput versions 1.3 and 1.4.

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-07 14:45:18 +01:00
Bruno Jesus ea4edbe179 xinput1_3/tests: Test the GUIDs returned from XInputGetDSoundAudioDeviceGuids.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-07 14:45:17 +01:00
Bruno Jesus cb855d98d5 xinput1_3: Test proper no new data error from XInputGetKeystroke.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-12 11:10:56 +09:00
Bruno Jesus 50cb6434bb xinput1_3: Test every xinput DLL version.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-12 11:10:51 +09:00
Bruno Jesus e3cda2c45d xinput1_3/tests: Cope with XInputGetStateEx not being present by name.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 11:27:42 +09:00
Bruno Jesus 0fe758046d xinput1_3: Stub XInputGetStateEx.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 20:47:45 +09:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01: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
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Francois Gouget 5da42336d9 xinput1_3/tests: Add a trailing '\n' to an ok() call. 2009-01-09 14:06:13 +01:00
Andrew Fenn 37a7ca59b3 xinput1_3: Added test for XInputGetBatteryInformation. 2009-01-08 13:41:40 +01:00
Andrew Fenn ab0d420dd2 xinput1_3: Added test for XInputGetDSoundAudioDeviceGuids. 2009-01-08 13:36:57 +01:00
Andrew Fenn 1b3feb2a5c xinput1_3: Added tests for XInputGetKeystroke. 2009-01-07 12:20:48 +01:00
Andrew Fenn 2c54c3dc82 xinput1_3: Added tests for XInputSetState. 2009-01-02 12:08:26 +01:00
Paul Vriens 99eaf51bb7 xinput1_3/tests: Call FreeLibrary() after tests. 2008-12-16 12:51:08 +01:00
Andrew Fenn 611ebb53e3 xinput: Added XInputGetCapabilities function with test case. 2008-11-11 14:03:01 +01:00
Andrew Fenn 29789a8ef4 xinput: Added the function XInputGetState with test case. 2008-11-11 14:03:01 +01:00