Bruno Jesus
e8273ae497
dinput: Cope with NULL flags in LinuxInputEffectImpl_GetEffectStatus.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-19 16:14:30 +09:00
Bruno Jesus
44303b6625
dinput: Implement DIPROP_PRODUCTNAME in GetProperty.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-19 16:14:30 +09:00
Bruno Jesus
738e17b2d7
dinput: Properly fill the HID information for the controller in the js driver.
...
Even the Xbox 360 controller which does not use HID has the same flags
and usage page set on Windows.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-17 13:17:54 +09:00
Bruno Jesus
03181015c3
dinput/tests: Test for DIDOI_ASPECTPOSITION on joystick axes.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-17 11:54:03 +09:00
Bruno Jesus
f1b782bfc8
dinput/tests: Improve controller debug information.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-15 12:56:23 +09:00
Michael Stefaniuc
a516c0aa38
dinput/tests: Make use of todo_wine_if().
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-05 09:14:26 -05:00
Bernhard Übelacker
dd08ef4063
dinput: Fail in SetCooperativeLevel on invalid hwnd.
...
MotoGP 3 demo fails to accept key presses to control the driver.
The game calls SetCooperativeLevel twice. First with an invalid hwnd
(but not NULL) and later with the real hwnd.
Signed-off-by: Bernhard Übelacker <bernhardu@vr-web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-25 13:25:31 +09:00
Hugh McMaster
11669fa5e2
Assorted spelling and grammar fixes.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-17 22:56:40 +09:00
Sebastian Lackner
bfb845f9fc
dinput: Ensure X11 input events are forwarded to wineserver even without message loop.
...
This commit basically reverts b22ff8018a
.
Windows does not do that, but our current implementation of winex11
requires periodic event polling to forward events to the wineserver.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 01:13:58 +09:00
Huw Davies
4b110f7554
dinput/tests: Send a matching key-up event.
...
The user32 msg tests are failing (more than normal) as they still see 'Q' in the down state.
2015-05-22 18:04:28 +09:00
Sebastian Lackner
0d91274def
dinput: Reset device state in SysKeyboard*Impl_Acquire.
2015-05-18 19:59:28 +09:00
André Hentschel
765abb771f
dinput/tests: Avoid assigning values twice (PVS-Studio).
2015-03-20 12:41:44 +09:00
Amine Khaldi
bd58a7ca45
dinput/tests: Declare pDirectInputCreateEx in a MSVC compatible way.
2015-02-24 12:51:37 +09:00
Bruno Jesus
1242417d13
dinput/tests: Release the instance after tests (valgrind).
2014-07-14 17:22:45 +02:00
Andrey Gusev
add85f4687
Assorted typos fixes.
2014-02-12 19:15:32 +01:00
Alexandre Julliard
99ef0d6ff0
makefiles: Get rid of the MAKE_TEST_RULES variable.
2014-01-02 12:13:16 +01:00
Michael Stefaniuc
9a263e58fd
dinput/tests: Compile with -D__WINESRC__.
2013-10-30 09:42:10 +01:00
Michael Stefaniuc
0e681027a2
tests: Compile the tests by default with -D__WINESRC__.
2013-10-02 11:04:02 +02:00
Lucas Zawacki
913cbb9f21
dinput/tests: Test for DIPROP_INSTANCENAME and DIPROP_GUIDANDPATH.
2012-10-11 20:22:02 +02:00
Francois Gouget
b8050f0571
Assorted spelling fixes.
2012-09-04 16:15:52 +02:00
Marcus Meissner
439605634e
dinput: No need for null ptr check of pKeyboard.
2012-09-03 17:43:38 +02:00
Lucas Zawacki
ac9a10f815
dinput: Return a valid keyboard type in keyboard GetCapabilities.
2012-08-20 14:59:45 +02:00
Lucas Zawacki
5b3ccdf04a
dinput/tests: Test for keyboard GetCapabilities.
2012-08-20 14:59:38 +02:00
Lucas Zawacki
e8f808a607
dinput: Semi-stub for IDirectInputJoyConfig8_GetConfig.
2012-08-14 12:01:10 +02:00
Lucas Zawacki
dbc10ef937
dinput/tests: Tests for IDirectInputJoyConfig8_GetConfig.
2012-08-14 12:01:06 +02:00
Lucas Zawacki
e3d243861c
dinput/tests: Added a test for DIPROP_JOYSTICKID.
2012-05-30 11:32:25 +02:00
Francois Gouget
fac36c55e9
Assorted typo, spelling, wording and case fixes.
2012-05-15 16:26:43 +02:00
Vitaliy Margolen
699da40d1b
dinput: Add more error checking to IDirectInput_GetDeviceStatus.
2011-11-29 14:04:25 +01:00
Vitaliy Margolen
310859db67
dinput: Add more parameter checking to enum devices.
2011-11-29 14:04:20 +01:00
Vitaliy Margolen
8c5a440144
dinput: Window supplied to SetCooperativeLevel have to be top level window.
2011-11-02 12:36:11 +01:00
Vitaliy Margolen
67e0b356c0
dinput: Restore checks for DirectX 3 buffer size.
2011-10-25 16:57:28 +02:00
Vitaliy Margolen
db6780806e
dinput: Add buffer overflow check.
2011-10-17 17:45:01 +02:00
Vitaliy Margolen
e939980027
dinput: Fix buffer size in test.
2011-10-17 17:45:01 +02:00
Vitaliy Margolen
1a56be85be
dinput: Acquire should not reset buffer position.
2011-10-14 13:12:28 +02:00
Vitaliy Margolen
157528eb0f
dinput: GetDeviceData always succeeds regardless if buffering is enabled or device is acquired.
2011-10-14 13:12:28 +02:00
Francois Gouget
ed3c9a1eca
Assorted spelling fixes.
2011-08-03 14:15:48 +02:00
Lucas Fialho Zawacki
d1a6d70e89
dinput/tests: Tests for EnumObjects with different types of device objects.
2011-07-15 14:43:47 +02:00
Marcus Meissner
3dc66a9d6d
dinput: const REFIID is duplicate const (Coverity).
2011-07-14 14:13:40 +02:00
Andrew Nguyen
10e28144c0
dinput: Improve the behavior of DirectInputCreateEx.
2011-07-06 11:13:47 +02:00
Andrew Nguyen
c126b21a34
dinput: Extract the DirectInput instance creation and initialization in DirectInputCreateEx to separate functions.
2011-07-06 11:13:45 +02:00
Andrew Nguyen
e5f73425dd
dinput/tests: Add tests for IDirectInput::GetDeviceStatus.
2011-07-06 11:13:43 +02:00
Andrew Nguyen
9b1060d090
dinput: Add tests for IDirectInput::EnumDevices and add a parameter check.
2011-07-06 11:13:42 +02:00
Andrew Nguyen
324c76f386
dinput: Improve the behavior of IDirectInput::CreateDevice.
2011-07-06 11:13:40 +02:00
Andrew Nguyen
26932c84b0
dinput: Improve the behavior of IDirectInput::Initialize.
2011-07-06 11:13:38 +02:00
Andrew Nguyen
c28512a5a6
dinput: Fix some return values of IDirectInput::QueryInterface.
2011-07-06 11:13:36 +02:00
Andrew Nguyen
90e9e3103a
dinput: Implement IDirectInput::RunControlPanel.
2011-07-06 11:13:31 +02:00
Vitaliy Margolen
eb6cec1656
dinput: Keyboard does not support DIPROP_RANGE property.
2011-05-31 11:12:35 +02:00
Austin English
d6d749f4d7
dinput/tests: Make sure to use return value (LLVM/Clang).
2011-02-07 10:06:07 -06:00
Vitaliy Margolen
02be0aee72
dinput: Fix typo. Found by clang.
2011-01-25 12:37:53 +01:00
Vitaliy Margolen
0ac5c60374
dinput: Combine ASCII and Unicode device create callbacks. Add tests.
2011-01-24 14:43:09 +01:00
Greg Geldorp
62670dc39e
dinput/tests: Skip acquire tests when not running in the foreground.
...
If our window isn't the foreground window, we'll never be able to
successfully Acquire with SetCooperativeLevel DISCL_FOREGROUND in effect.
2011-01-06 18:29:14 +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
Paul Vriens
5a40c65cfe
dinput/tests: Fix a few intermittent test failures.
2009-10-15 12:06:18 +02:00
Detlef Riekenberg
5599912e27
dinput/tests: Remove duplicate version dump.
...
We have the version already in the header of the winetest results.
2009-03-30 13:56:54 +02:00
Vincent Pelletier
befb0a06b1
dinput: Move gain support from effect to device.
2009-02-02 15:21:44 +01:00
Michael Stefaniuc
c0d2a21dd1
dinput: Remove superfluous pointer casts.
2009-01-28 12:30:51 +01:00
Vincent Pelletier
5a24b42b30
dinput: Implement auto-center set & get.
2009-01-23 13:44:33 +01:00
Vincent Pelletier
7d0ee98716
dinput: Add test to show that effects are stopped after Unacquire + Acquire and preserved in dinput.
2009-01-22 15:28:23 +01:00
Vincent Pelletier
41be1096c0
dinput: On Unacquire, stop all effects and unload them.
2009-01-22 15:28:23 +01:00
Vincent Pelletier
a0c10c2af2
dinput: Use tested DirectInput version instead of latest.
2009-01-22 15:28:23 +01:00
Vincent Pelletier
ebc2c74f7c
dinput: Test that upload, unacquire, acquire still permits updating uploaded effect.
...
Kudos to Daniel Remenak for his help.
2009-01-21 12:30:20 +01:00
Vincent Povirk
6ff83ba591
dinput/tests: Fix string format warning.
2008-12-05 12:30:10 +01:00
Vitaliy Margolen
aa0188cd6f
dinput: Zero the out buffer.
2008-07-28 12:16:34 +02:00
Alexandre Julliard
b648dac7e1
dinput: Don't depend on the dxerr8 static library in the tests.
2008-07-08 17:51:46 +02:00
Alexandre Julliard
79c64acc7b
tests: Don't depend on the static uuid libraries in the tests.
...
This avoids trouble with the broken MingW libraries when
cross-compiling the tests.
2008-07-08 17:51:45 +02:00
Vitaliy Margolen
a478c4fe25
dinput: Freed effect should remove itself from the parent's list of effects. Add tests.
2008-07-07 12:11:24 +02:00
Vitaliy Margolen
e850b4f13d
dinput: Convert keyboard buffer from internal data format to user data format.
2008-05-28 19:31:59 +02:00
Vitaliy Margolen
a37c60b0f7
dinput: Implement GetDeviceStatus.
2008-05-12 11:43:32 +02:00
Vitaliy Margolen
382ed33b7a
dinput: Default value for unassigned POVs should be -1.
2008-05-08 18:14:18 +02:00
Alexandre Julliard
dad21bbcbf
makefiles: List the static libraries as normal imports instead of extra libs.
2008-04-30 14:23:55 +02:00
Lionel Debroux
27c2b56c5e
dinput: joystick test: Improve reporting when enumerated axes/buttons/POVs don't match capabilities.
2008-04-28 13:27:51 +02:00
Sergey Khodych
c6a7fd44d2
dinput/tests: Add test to show dinput does not use user defined data format for keyboard.
2008-04-18 13:57:15 +02:00
Paul Vriens
a85c7594dc
dinput/tests: Don't treat old dinput versions as an error.
2008-03-10 11:22:30 +01:00
Vitaliy Margolen
41ce4a0158
dinput: Use CALLWINDPROC hook to monitor focus loses away from acquired windows.
2007-07-16 22:59:07 +02:00
Vitaliy Margolen
1f72c13a5a
dinput: Correct test - use appropriate mouse state structure.
2007-07-06 18:15:19 +02:00
Vitaliy Margolen
f83b53c160
dinput: Acquire device only if specified window has focus in foreground coop level.
2007-06-04 13:10:10 +02:00
Vitaliy Margolen
a06821765a
dinput: Don't reset dead zone and saturation when setting data format.
...
Additional tests indicate that native doesn't touch previously set
properties.
2007-02-06 20:23:28 +01:00
Vitaliy Margolen
45b8d865b4
dinput: Don't reset user specified range in SetDataFormat. With tests.
2007-02-05 14:03:28 +01:00
Vitaliy Margolen
b8b03b54b7
dinput: Initialize user limits with the default 0..65535 range. Add tests.
2007-02-05 14:03:20 +01:00
Vitaliy Margolen
504798ce9f
dinput: Change EnumObjects to use GetObjectInfo.
...
Also small debug trace correction to make it more readable.
2007-01-05 18:23:46 +01:00
Francois Gouget
bbb2b7fd98
Assorted spelling fixes.
2007-01-04 11:27:31 +01:00
Vitaliy Margolen
ce5fb9bb29
dinput: AddRef and Release parent DirectInput class.
2006-12-24 13:07:15 +01:00
Vitaliy Margolen
975d7ff292
dinput: Make mouse use axis mode flag set in base class. Add tests.
2006-12-18 12:01:05 +01:00
Marcus Meissner
f0280cbd1e
made functions and variables static in some testcases.
2006-12-11 12:18:29 +01:00
Vitaliy Margolen
f7eacd64d1
dinput: Move acquired flag to the base device class. Add tests.
2006-12-04 12:33:35 +01:00
Francois Gouget
dc44dbfa41
dinput/tests: Remove unneeded NONAMELESS* macros.
2006-11-24 11:48:47 +01:00
Vitaliy Margolen
35ee9b05d9
dinput: Add SetCooperativeLevel test for joystick.
2006-10-17 12:36:28 +02:00
Vitaliy Margolen
d35e4cd83c
dinput: Add SetCooperativeLevel tests to keyboard.
2006-10-17 12:36:24 +02:00
Michael Ploujnikov
3438512f53
dinput/tests: Win64 printf format warning fixes.
2006-10-12 11:37:15 +02:00
Michael Stefaniuc
85ce5117c5
Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int.
2006-09-29 16:08:30 +02:00
Vitaliy Margolen
adadb5be78
dinput: Return proper errors in SetCooperativeLevel.
2006-09-20 12:24:14 +02:00
Alexandre Julliard
32ab895e46
makefiles: Generate the dependencies line to avoid some code duplication.
2006-09-14 09:38:16 +02:00
Andrew Talbot
70cfb05fc4
dinput/tests: Write-strings warning fix.
2006-07-31 21:57:59 +02:00
Alexandre Julliard
0fa8baafcb
make_dlls: Recursively ignore .ok files in all tests directories.
2006-07-10 21:26:50 +02:00
Alexandre Julliard
edd100b899
make_dlls: Recursively ignore testlist.c in all tests directories.
2006-07-10 21:19:42 +02:00
Alexandre Julliard
cc2b3b48e6
Take advantage of the recursive nature of .gitignore for Makefile entries.
...
Prefix other entries with '/' to make them non-recursive.
2006-07-10 20:47:54 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00