I’m building a macOS utility for an external USB-C touchscreen (UPERFECT E06, USB VID:PID 32D7:0010) on a Mac mini with M4 Pro running macOS 27.2.1. The goal is for touches to go to the window under the fingers on that display while the physical mouse pointer stays on another monitor.
My utility can read two distinct finger contacts from the E06’s USB HID reports. However, an AppKit test window on the E06 receives zero direct contacts through an NSGestureRecognizer configured with allowedTouchTypes = .direct. As a control, I moved the same test window to an iPad connected via Sidecar. It reported two simultaneous direct contacts, and the mouse pointer stayed on the other monitor.
Is there a supported public API or driver configuration in macOS 27 to associate a third-party USB digitizer with a specific external display so that AppKit receives its contacts as direct touch?
I’m considering CoreHID’s HIDVirtualDevice with the com.apple.developer.hid.virtual.device entitlement, or a HIDDriverKit event service. Can either route provide that display association, and if so, which API or configuration should I use? I’d like to confirm this before requesting the entitlement.