hidclass.sys: Only send WM_INPUT messages for HID devices.
And not for the internal WINEXINPUT devices. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9d5e9b5f42
commit
09895076c6
|
@ -190,6 +190,8 @@ static void hid_device_queue_input( DEVICE_OBJECT *device, HID_XFER_PACKET *pack
|
||||||
KIRQL irql;
|
KIRQL irql;
|
||||||
IRP *irp;
|
IRP *irp;
|
||||||
|
|
||||||
|
if (IsEqualGUID( ext->class_guid, &GUID_DEVINTERFACE_HID ))
|
||||||
|
{
|
||||||
size = offsetof( RAWINPUT, data.hid.bRawData[packet->reportBufferLen] );
|
size = offsetof( RAWINPUT, data.hid.bRawData[packet->reportBufferLen] );
|
||||||
if (!(rawinput = malloc( size ))) ERR( "Failed to allocate rawinput data!\n" );
|
if (!(rawinput = malloc( size ))) ERR( "Failed to allocate rawinput data!\n" );
|
||||||
else
|
else
|
||||||
|
@ -212,6 +214,7 @@ static void hid_device_queue_input( DEVICE_OBJECT *device, HID_XFER_PACKET *pack
|
||||||
|
|
||||||
free( rawinput );
|
free( rawinput );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!(last_report = hid_report_create( packet )))
|
if (!(last_report = hid_report_create( packet )))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue