Closed CaffreySun closed 4 years ago
I don't know well the pen device, but I guess you should change the root usage page and page of reportDescriptor_ and the primary usage page and usage. https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice/blob/master/src/DriverKit/Karabiner-DriverKit-VirtualHIDDevice/org_pqrs_Karabiner_DriverKit_VirtualHIDPointing.cpp#L13-L14 https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice/blob/master/src/DriverKit/Karabiner-DriverKit-VirtualHIDDevice/org_pqrs_Karabiner_DriverKit_VirtualHIDPointing.cpp#L176-L184
It's worth to try replacing the entire reportDescriptor_ with your Windows pen device sample.
Thanks for your answer, Thank you very much!
Hi friend, i want add a function about "pressure" in VirtualHIDPointing, and i added
USAGE (Tip Pressure)
inreportDescriptor_[]
And i modified
pqrs::karabiner::driverkit::virtual_hid_device::hid_report::pointing_input
But this cannot work.
I found a "Report" about "Windows pen device" at Sample Report Descriptors, But I don't know how to use it.