Can an external USB touchscreen deliver direct multitouch on macOS 27 without moving the mouse pointer?

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.

So, let me jump to here:

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?

So, generally speaking, both of these APIs are direct equivalents of each other. HIDVirtualDevice is basically the user space API you'd create to send events INTO the virtual driver you'd create using HIDDriverKit. For virtual devices, I'd recommend using HIDVirtualDevice simply because DriverKit is an API worth avoiding whenever possible.

I’d like to confirm this before requesting the entitlement.

Both APIs now have development-only variants, so you can actually test and experiment with either approach without any additional approval.

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?

No and yes. There isn't any API that directly binds hardware (or a virtual HID device) to a particular display. However, that's because one of the major "jobs" of the higher-level event system IS mapping controller input to specific locations.

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.

I haven't looked closely at Sidecar's implementation, but my guess is that a significant part of how it works is that it's actually pushing Quartz events directly into the higher-level API, not generating HID events. This sidesteps all of these mapping issues, since CGEvent IS what determines the actual location target of every event.

__
Kevin Elliott
DTS Engineer, CoreOS/Hardware