Rémi Bernon
91d9819c95
dinput: Fire the notification only after all events have been queued.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-17 10:48:34 +02:00
Rémi Bernon
df0e491cb1
dinput: Don't disable HID joysticks by default.
...
Although not completely correct it should be usable already, and running
the tests would require setting the registry key before and cleaning it
up after otherwise.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-15 19:34:21 +02:00
Rémi Bernon
2726644124
dinput: Allocate data format on device creation.
...
It's accessed on Release, and this will make it easier to handle device
creation failure cleanup.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-26 21:49:09 +02:00
Rémi Bernon
d666aea360
dinput: Remove the need for ANSI enum_device callback.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-31 11:31:28 +02:00
Rémi Bernon
17958bc863
dinput: Factor out device creation interface queries.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-31 11:31:21 +02:00
Rémi Bernon
f3a07c5cae
dinput: Factor out IDirectInputDevice ansi vtable.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-28 21:53:07 +02:00
Rémi Bernon
8d7914962b
dinput: Introduce direct_input_device_alloc helper.
...
To factor out device allocation and initialization.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-28 21:53:07 +02:00
Rémi Bernon
ad8e3727c1
dinput: Make device creation error handling consistent.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-28 21:53:07 +02:00
Rémi Bernon
5f4ee79149
dinput: Factor out IDirectInputDevice_SetActionMap WtoA conversions.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-27 16:14:24 +02:00
Rémi Bernon
8109f8398a
dinput: Factor out IDirectInputDevice_BuildActionMap WtoA conversions.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-27 16:14:19 +02:00
Rémi Bernon
27ea33baf9
dinput: Factor out IDirectInputDevice_GetDeviceInfo WtoA conversions.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-27 16:14:13 +02:00
Rémi Bernon
7713050c77
dinput: Factor out IDirectInputDevice_GetDeviceState WtoA conversions.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-27 16:14:08 +02:00
Rémi Bernon
5eb5f94fc0
dinput: Factor out IDirectInputDevice_GetCapabilities WtoA conversions.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-27 16:14:03 +02:00
Rémi Bernon
08d07c4cc2
dinput: Factor out IDirectInputDevice_GetObjectInfo WtoA conversions.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-26 21:29:37 +02:00
Rémi Bernon
49c66a3a94
dinput/tests: Check IDirectInputDevice2AImpl_GetObjectInfo error codes.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-26 21:29:37 +02:00
Rémi Bernon
90ef30828e
dinput: Use generic WtoA wrappers when possible.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-25 21:13:01 +02:00
Rémi Bernon
5fe103107a
dinput: Use IDirectInputDevice8W interface consistently.
...
Instead of sometimes using IDirectInputDevice8A.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-25 21:13:01 +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
306c40e673
dinput: Use dedicated list for mouse and keyboard.
...
Instead of using function pointer, which is also not very CPU friendly.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-09 21:23:33 +02:00
Rémi Bernon
26c1131201
dinput: Use a single list for all acquired devices.
...
Instead of going through devices list of dinputs list, and checking
their acquired field, which is not CPU friendly.
This also removes the now unused IDirectInputImpl critical section and
devices list.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-09 21:23:33 +02:00
Alistair Leslie-Hughes
d61d710121
dinput: Mouse device doesn't support property DIPROP_VIDPID.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-11 12:48:11 +01:00
Alistair Leslie-Hughes
c4debff5db
dinput: Improve returned flags in Mouse GetObjectInfo.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-17 20:42:22 +02:00
Alistair Leslie-Hughes
52deca4900
dinput: Trace This pointer in a consistent way.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-09 11:39:52 -05:00
Alistair Leslie-Hughes
381fa00b6a
dinput: Support DIDEVICEINSTANCE_DX3 for Mouse GetDeviceInfo.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-06 07:13:53 -05:00
Alistair Leslie-Hughes
b3c5062f36
dinput: Don't report SysMouse/Keyboard devices as supporting Force Feedback.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-26 21:05:08 +02:00
Piotr Caban
e7d1107f32
dinput: Don't use strcasecmp.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-08 19:50:40 +02:00
Brendan McGrath
3a2834b3a4
dinput: Use the same GUID for Instance and Product.
...
Signed-off-by: Brendan McGrath <brendan@redmandi.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-31 17:22:36 +01:00
Johann Frei
4bc1e172ec
dinput: Implement X/Y axis granularity and add test.
...
Signed-off-by: Johann Frei <johann_frei@yahoo.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-08 11:27:19 -06: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
Sebastian Lackner
eca5ee9a49
dinput: Print TRACE at the beginning of SysMouseWImpl_GetDeviceState function.
...
Also move the _dump_mouse_state() call inside of the lock.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 01:13:57 +09:00
André Hentschel
c440168e53
dinput: Remove unused functions (Clang).
2014-11-25 19:49:40 +01:00
Andrew Eikum
0ba314ebfa
dinput: Enumerate devices past the first non-matching device.
2013-05-21 12:08:01 +02:00
Dmitry Timoshkov
1a61dcc25d
dinput: Use standard way for dumping POINT.
2012-03-27 11:38:11 +02:00
Alexandre Julliard
011a3523aa
dinput: Filter out mouse wheel messages in exclusive mode.
2012-02-15 19:17:36 +01:00
Alexandre Julliard
a1580bba70
dinput: Clip to the client area instead of the whole window in exclusive mode.
2012-02-01 16:42:47 +01:00
Alexandre Julliard
b0657c8623
dinput: Catch unsuccessful clipping attempts and fall back to warping.
2012-01-30 20:44:48 +01:00
Alexandre Julliard
f6368c4202
dinput: Clip the mouse to the entire window instead of a 1x1 rectangle in exclusive mode.
2012-01-19 21:08:51 +01:00
Vitaliy Margolen
35016b0513
dinput: Report mouse and keyboard as being emulated. This works better for some games.
2011-10-31 16:46:21 +01:00
Vitaliy Margolen
d7db5d5399
dinput: Don't mask buffer overflow error.
2011-10-17 17:45:01 +02:00
Lucas Fialho Zawacki
64c1f4778c
dinput: Proper conversion of username parameters for Set and BuildActionMap.
2011-08-24 11:51:51 +02:00
Lucas Fialho Zawacki
d175c1526f
dinput: Common implementation for joystick, keyboard and mouse SetActionMap.
2011-08-24 11:51:42 +02:00
Lucas Fialho Zawacki
c0fd222321
dinput: Common implementation of BuildActionMap for keyboard and mouse.
2011-08-24 11:51:39 +02:00
Frédéric Delanoy
f932abf326
dlls: Assorted spelling fixes.
2011-08-01 18:26:27 +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
Alexandre Julliard
86b682154b
dinput: Reset the clipped flag when the cursor is released.
2011-05-05 16:32:00 +02:00
Alexandre Julliard
0036e438db
dinput: Pass mouse messages through if the request to clip the cursor is rejected.
2011-04-26 16:04:23 +02:00
Alexandre Julliard
c52f415415
dinput: Use a 1x1 clipping rect instead of warping the mouse in exclusive mode.
2011-04-26 16:04:00 +02:00
Alexandre Julliard
5f2daff124
dinput: Add a helper function for mouse warping.
2011-04-26 15:31:32 +02:00