Commit 2a52c8dc authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dinput/tests: Create a HID device from the Bus device.

parent 709e31ff
......@@ -5,6 +5,10 @@ driver_IMPORTS = winecrt0 ntoskrnl hal hidclass
driver_EXTRADLLFLAGS = -nodefaultlibs -nostartfiles -Wl,--subsystem,native
driver_bus_IMPORTS = winecrt0 ntoskrnl hal
driver_bus_EXTRADLLFLAGS = -nodefaultlibs -nostartfiles -Wl,--subsystem,native
driver_hid_IMPORTS = winecrt0 ntoskrnl hal hidclass
driver_hid_EXTRADLLFLAGS = -nodefaultlibs -nostartfiles -Wl,--subsystem,native
driver_hid_poll_IMPORTS = winecrt0 ntoskrnl hal hidclass
driver_hid_poll_EXTRADLLFLAGS = -nodefaultlibs -nostartfiles -Wl,--subsystem,native
SOURCES = \
device.c \
......@@ -14,6 +18,10 @@ SOURCES = \
driver.spec \
driver_bus.c \
driver_bus.spec \
driver_hid.c \
driver_hid.spec \
driver_hid_poll.c \
driver_hid_poll.spec \
force_feedback.c \
hid.c \
hotplug.c \
......
......@@ -49,6 +49,7 @@ extern const GUID expect_guid_product;
extern const WCHAR expect_path[];
extern const WCHAR expect_path_end[];
extern HANDLE device_added, device_removed;
extern HINSTANCE instance;
extern BOOL localized; /* object names get translated */
......
......@@ -35,6 +35,8 @@
#include "winternl.h"
#include "ddk/wdm.h"
#include "ddk/hidsdi.h"
#include "ddk/hidport.h"
#include "ddk/hidclass.h"
DEFINE_GUID(control_class,0xdeadbeef,0x29ef,0x4538,0xa5,0xfd,0xb6,0x95,0x73,0xa3,0x62,0xc0);
......@@ -62,8 +64,21 @@ struct hid_expect
/* create/remove device */
struct bus_device_desc
{
WORD vid;
WORD pid;
BOOL is_polled;
BOOL use_report_id;
DWORD report_descriptor_len;
char report_descriptor_buf[1024];
HIDP_CAPS caps;
HID_DEVICE_ATTRIBUTES attributes;
ULONG input_size;
struct hid_expect input[64];
ULONG expect_size;
struct hid_expect expect[64];
ULONG context_size;
char context[64];
};
/* kernel/user shared data */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment