<!--
{
  "availability" : [
    "DriverKit: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HIDDriverKit",
  "identifier" : "/documentation/HIDDriverKit/IOHIDElementCommitDirection",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "HIDDriverKit"
    ],
    "preciseIdentifier" : "c:@EA@IOHIDElementCommitDirection"
  },
  "title" : "IOHIDElementCommitDirection"
}
-->

# IOHIDElementCommitDirection

The commit direction for an HID element.

```
typedef enum { ... } IOHIDElementCommitDirection;
```

## Overview

Passing a value of [`kIOHIDElementCommitDirectionOut`](/documentation/HIDDriverKit/IOHIDElementCommitDirection/kIOHIDElementCommitDirectionOut) issues a [`setReport`](/documentation/HIDDriverKit/IOHIDDevice/setReport) call to the device. Before issuing this call, set your desired value on the element with the [`setValue`](/documentation/HIDDriverKit/IOHIDElement/setValue) or [`setDataValue`](/documentation/HIDDriverKit/IOHIDElement/setDataValue) functions.

## Topics

### Getting the Commit Directions

[`kIOHIDElementCommitDirectionIn`](/documentation/HIDDriverKit/IOHIDElementCommitDirection/kIOHIDElementCommitDirectionIn)

Causes the retrieval of information from the device, and the populating of the element with the resulting data.

[`kIOHIDElementCommitDirectionOut`](/documentation/HIDDriverKit/IOHIDElementCommitDirection/kIOHIDElementCommitDirectionOut)

Causes the element data to be sent to the device.



---

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)