We ship a macOS app that creates a virtual display with CGVirtualDisplay and streams it to a tablet, which acts as a second screen. Today we deliver the tablet's touches as mouse events (CGEvent), so the system sees a pointer, not touch.
With Touch on Mac in macOS 27, we would like the system to treat that display as touch-capable, the way it does for an iPad connected with Sidecar:
- Can a display created with CGVirtualDisplay report touch capability (NSScreen.touchCapabilities including .multiTouch) and receive direct touches?
- If not directly, is a virtual HID digitizer (DriverKit or CoreHID) associated with the display's UUID the supported path? Is the com.apple.developer.hid.virtual.device entitlement available for this use?
- If neither is supported today, what is the recommended way to deliver touch input to a virtual display without mouse emulation?
We asked this in the Touch on Mac Group Lab on 20 November and were directed here. Thank you.