Commit Graph

57 Commits

Author SHA1 Message Date
Zebediah Figura 6ca21b56b4 hid: Scale from logical to physical coördinates in HidP_GetScaledUsageValue().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-15 20:52:05 +01:00
Zebediah Figura fbc1a89a40 hid: Correctly sign-extend all values in HidP_GetScaledUsageValue().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-15 20:51:47 +01:00
Zebediah Figura b16fb11890 hid: Don't sign-extend 16-bit values.
Some controllers (including, with the previous patch, any reported
through SDL) may report a logical range of [0,65535], which takes up
16 bits but should not be sign-extended.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-06 19:57:27 +01:00
Aric Stewart a2ab553818 hid: Implement HidP_SetUsageValue.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-27 19:37:09 +01:00
Zebediah Figura 4526c5923c hid/tests: Use DIGCF_PRESENT.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-19 17:46:30 +02:00
Andrew Eikum 2de3dc3dd6 hid: Pass a buffer to DeviceIoControl in HidD_SetNumInputBuffers.
DeviceIoControl expects a pointer, and this value gets dereferenced as a
ULONG* in hidclass.sys.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-09 20:32:27 +01:00
Andrey Gusev d4ea289dc1 hid/tests: Remove redundant comparison.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-09 19:51:14 +02:00
Marcus Meissner 0a2e48933d hid: Increase buffer size to allow 16bit value + space + NUL (GCC7).
Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-02 17:25:13 +02:00
Michael Stefaniuc b89e3f80ae hid/tests: Remove duplicated for condition (coccinellery).
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 22:58:45 +01:00
Francois Gouget e829de27fd hid/tests: Remove a space before a '\n'.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-03 19:05:10 +01:00
Aric Stewart 1ccb1719cb hidclass.sys: IOCTL_HID_GET_INPUT_REPORT has report ID as first byte.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 20:40:13 +01:00
Aric Stewart 41a82d8037 hid/tests: Test HidD_GetInputReport.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 19:52:58 +01:00
Aric Stewart 150f179716 hid/tests: Test device reads.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 19:52:23 +01:00
Aric Stewart a8ab3107cf hid: Implement HidP_GetData.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 13:07:49 +01:00
Aric Stewart 6bf21e1a54 hid: Implement HidP_MaxDataListLength.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 13:07:45 +01:00
Aric Stewart 178400b2bf hid/tests: Add HID device enumeration test.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 10:35:35 +01:00
Aric Stewart cc00075a65 hid: Implement HidP_GetUsagesEx.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 10:35:06 +01:00
Aric Stewart fbd3525e24 hid: Implement HidD_GetNumInputBuffers.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 10:35:00 +01:00
Aric Stewart e724d67fb4 hid: Refine initialization of UsageLength in HidP_GetUsages.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-08 16:06:40 +01:00
Aric Stewart 78a547a11c hid: Initialize outgoing usages in HidP_GetUsages.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-07 19:38:35 +01:00
Aric Stewart a4ed76b948 hid: Implement HidP_GetSpecificButtonCaps.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-18 11:12:46 -06:00
Aric Stewart 3c60e4bf58 hid: Implement HidP_GetSpecificValueCaps.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-14 11:07:08 -06:00
Aric Stewart 86f4aa1993 hid: Fix HidP_MaxUsageListLength to handle UsagePage == 0 properly.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-14 11:07:08 -06:00
Aric Stewart 20a4842a89 hid: Correct issues with getting packed values.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-14 11:07:08 -06:00
Aric Stewart fc1485b86b hid: Implement HidD_SetOutputReport.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-26 20:12:04 +02:00
Aric Stewart b82ce81957 hid: Stub HidP_TranslateUsagesToI8042ScanCodes.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-21 21:17:37 +09:00
Aric Stewart fa8eedddd5 hid: Implement HidD_SetNumInputBuffers.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-06 14:54:32 +09:00
Aric Stewart af3406ec61 hid: Implement HidD_GetSerialNumberString.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-30 15:10:14 +09:00
Francois Gouget 6970d65887 hid: Remove spaces before '\n'. 2015-08-07 23:50:20 +09:00
Aric Stewart 098efa1edc hid: Implement HidP_GetScaledUsageValue. 2015-07-01 19:18:20 +09:00
Aric Stewart 1174fc63ad hid: Implement HidP_MaxUsageListLength. 2015-07-01 19:18:20 +09:00
Aric Stewart 674080da91 hid: Implement HidD_GetAttributes. 2015-07-01 19:18:19 +09:00
Aric Stewart eac15cae71 hid: Implement HidD_GetInputReport. 2015-07-01 19:18:19 +09:00
Aric Stewart 5b790bde5e hid: Implement HidD_GetPreparsedData and HidD_FreePreparsedData. 2015-07-01 19:18:18 +09:00
Aric Stewart 30480a2369 hid: Implement HidP_InitializeReportForID. 2015-07-01 19:18:18 +09:00
Aric Stewart ecc6196508 hid: Implement HidP_GetUsageValue. 2015-07-01 19:18:18 +09:00
Aric Stewart 8bb231c4ae hid: Implement HidP_GetUsages. 2015-07-01 19:18:17 +09:00
Aric Stewart 0bb216ff35 hid: Implement HidP_GetValueCaps. 2015-07-01 19:18:17 +09:00
Aric Stewart b183dc3d6e hid: Implement HidP_GetButtonCaps. 2015-07-01 19:18:17 +09:00
Aric Stewart 1e1599d961 hid: Implement HidP_GetCaps. 2015-07-01 19:18:16 +09:00
Aric Stewart 4c6507d94c hid: Translate HidD_ functions to their IOCTLs. 2015-06-26 20:35:06 +09:00
Aric Stewart 5b882003fe hid: Break HidD functions out into their own module. 2015-06-26 20:35:06 +09:00
Austin English bb25986702 hid: Add HidD_GetProductString stub. 2014-08-04 16:20:15 +02:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Alexandre Julliard f02cdd877f Remove empty DLL_PROCESS_DETACH case statements. 2013-04-15 16:45:35 +02:00
André Hentschel 4b98d78951 hid: Add HidD_GetManufacturerString stub. 2013-04-04 13:28:46 +02: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
Andrew Nguyen 8dc97882f3 hid: Stub HidD_SetFeature. 2009-02-23 15:54:16 +01:00