---
title: dispatchDigitizerTouchEvent
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iohideventservice/dispatchdigitizertouchevent
---

# dispatchDigitizerTouchEvent

Dispatches a digitizer touch event to the system.

## Declaration

```occ
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 doc://com.apple.hiddriverkit/documentation/HIDDriverKit/IOHIDDigitizerTouchData.
- `touchDataCount`: The number of structures in the touchData parameter.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## Discussion

Discussion The default implementation of this method does nothing. Subclasses must override it to dispatch touch events.

## See Also

### Dispatching Events

- [dispatchKeyboardEvent](hiddriverkit/iohideventservice/dispatchkeyboardevent.md)
- [dispatchRelativePointerEvent](hiddriverkit/iohideventservice/dispatchrelativepointerevent.md)
- [dispatchAbsolutePointerEvent](hiddriverkit/iohideventservice/dispatchabsolutepointerevent.md)
- [dispatchDigitizerStylusEvent](hiddriverkit/iohideventservice/dispatchdigitizerstylusevent.md)
- [dispatchRelativeScrollWheelEvent](hiddriverkit/iohideventservice/dispatchrelativescrollwheelevent.md)
- [dispatchEvent](hiddriverkit/iohideventservice/dispatchevent.md)
- [IOHIDKeyboardEventOptions](hiddriverkit/iohidkeyboardeventoptions.md)
- [IOHIDPointerEventOptions](hiddriverkit/iohidpointereventoptions.md)
- [IOHIDScrollEventOptions](hiddriverkit/iohidscrolleventoptions.md)
