IOHIPointing dispatchAbsolutePointerEvent not works

Hi,


I was develped a kext for USB HID device.

Seems macOS 10.12/10.13 already supported standard touch device.

But our device is works incorrectly.


I have some reason want to keep use the old driver I developed before.

After upgrade to 10.12 and 10.13, dispatchAbsolutePointerEvent not works anymore.

The driver could received report from USB HID device.


Does anyone who had experiences about this?


Should I change the super class and use other API to make mouse works?

Replies

This isn’t really my field but my understanding is that folks who want to dispatch absolute pointer events should be subclassing

IOHIDEventService
rather than
IOHIPointing
.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I'm tried that before, when I used kextutil -n -t to check the kext.

If the subclass is IOHIDEventService, that had a link problem.


The error message is below.


(kernel) kxld[class name]: Cannot find the vtable '__ZTVN27com_class name9MetaClassE' for class'27com_class_name'. This vtable symbol is required for binary compatibility, and it may have been stripped.


Also used kextlibs to check it, all the libraries already add to the plist.

For all architectures:

com.apple.iokit.IOHIDFamily = 2.0

com.apple.iokit.IOUSBFamily = 900.4.1

com.apple.iokit.IOUSBHostFamily = 1.2

com.apple.kpi.iokit = 17.3

com.apple.kpi.libkern = 17.3

com.apple.kpi.mach = 17.3


For x86_64:

1 symbol not found in any library kext.


That's why I still trying IOHIPointing. But seems that is not a right way, do you know which library I missed when I use IOHIDEventService?

I just fixed the link problem, when I used subclass as IOHIDEventService.

But the dispatchAbsolutePointerEvent is still not works.


Is there any exmaple or document about this?

Is there any exmaple or document about this?

Not that I’m aware of. If you can’t figure it out I recommend that you open a DTS tech support incident and talk to DTS’s HID specialist.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"