---
title: dispatchEvent
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iouserhideventservice/dispatchevent
---

# dispatchEvent

Dispatches a HID event to the system.

## Declaration

```occ
virtual void dispatchEvent(IOHIDEvent *event);
```

## Parameters

- `event`: The event to dispatch.

## Discussion

Discussion This method is a funnel point for dispatching events to the system’s registered clients. You can also call it directly to dispatch events for which you create an IOHIDEvent object.

## See Also

### Performing Private Tasks

- [createReportPool](hiddriverkit/iouserhideventservice/createreportpool.md)
