<!--
{
  "availability" : [
    "driverkit: 19.0.0 -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HIDDriverKit",
  "identifier" : "/documentation/HIDDriverKit/IOUserHIDEventService/dispatchDigitizerTouchEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HIDDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserHIDEventService@F@dispatchDigitizerTouchEvent#k#*$@S@IOHIDDigitizerTouchData#i#"
  },
  "title" : "dispatchDigitizerTouchEvent"
}
-->

# dispatchDigitizerTouchEvent

Dispatches a digitizer touch event to the system.

```
virtual kern_return_t dispatchDigitizerTouchEvent(uint64_t timeStamp, IOHIDDigitizerTouchData *touchData, uint32_t touchDataCount);
```

## Parameters

`timeStamp`

The timestamp of the event. Use the timestamp of the report element that is the source of the event.

`touchData`

An array of structures containing the data for the individual touches. For more information, see [`IOHIDDigitizerTouchData`](/documentation/HIDDriverKit/IOHIDDigitizerTouchData).

`touchDataCount`

The number of structures in the `touchData` parameter.

## Return Value

<doc://com.apple.documentation/documentation/DriverKit/kIOReturnSuccess> on success, or another value if an error occurs. See <doc://com.apple.documentation/documentation/DriverKit/error-codes>.

## Discussion

Call this method from your event service to dispatch a touch event to the system. Typically, you call this method when handling a report from the device, after you determine that the event originated from a touchscreen or touch pad.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)