Category : hid

I’m in the middle of adding custom Windows Touchpad handling into my Windows C++ desktop application. From a high level, the app has its own cursor and objects that can be clicked. The cursor needs to be directly controlled by a Windows Precision Touchpad, and completely decoupled from the standard Windows mouse. I’m accomplishing this ..

Read more

I’m trying to write a KMDF driver to simulate keystrokes. When the driver receives IOCTL_HID_READ_REPORT it redirects the request to a queue: switch (IoControlCode) { case IOCTL_HID_GET_DEVICE_DESCRIPTOR: KdPrint(("GET DEVICE DESCRIPTORn")); _Analysis_assume_(deviceContext->HidDescriptor.bLength != 0); status = RequestCopyFromBuffer(Request, &deviceContext->HidDescriptor, deviceContext->HidDescriptor.bLength); break; case IOCTL_HID_GET_DEVICE_ATTRIBUTES: KdPrint(("GET DEVICE ATTRIBUTESn")); status = RequestCopyFromBuffer(Request, &queueContext->DeviceContext->HidDeviceAttributes, sizeof(HID_DEVICE_ATTRIBUTES)); break; case IOCTL_HID_GET_REPORT_DESCRIPTOR: KdPrint(("GET REPORT DESCRIPTORn")); ..

Read more

I want to use the C# and .NET library Device.Net (Usb.Net and Hid.Net) on Windows, but I just cannot get even the first example working. The samples in the https://github.com/MelbourneDeveloper/Device.Net repository just wont build or run in Visual Studio. What I did: installed Visual Studio 2019 Community 16.9.5 (Windows x64) installed almost all Workloads, because ..

Read more

I am having trouble get my Arduino HID Axis controller to read correctly in windows. I am using an older version of this code (https://github.com/MHeironimus/ArduinoJoystickLibrary) which I’m modifying to get rid of everything except the axis’. #include "Joystick.h" #if defined(_USING_HID) #define JOYSTICK_REPORT_ID 0x03 #define JOYSTICK_STATE_SIZE 9 static const uint8_t _hidReportDescriptor[] PROGMEM = { // Joystick ..

Read more