Contents

IOHIDDeviceGetValue

Gets a value for an element.

Declaration

IOReturn IOHIDDeviceGetValue(IOHIDDeviceRef device, IOHIDElementRef element, IOHIDValueRef  _Nonnull *pValue);

Parameters

  • device:

    Reference to an IOHIDDevice.

  • element:

    IOHIDElementRef whose value is to be obtained.

  • pValue:

    Pointer to IOHIDValueRef to be obtained.

Return Value

Returns kIOReturnSuccess if successful.

Discussion

This method behaves synchronously and return back immediately for input type element. If requesting a value for a feature element, this will block until the report has been issued to the device. If obtaining values for multiple elements you may want to consider using IOHIDDeviceCopyValueMultiple or IOHIDTransaction.

See Also

Miscellaneous