IOHIDDeviceRegisterInputValueCallback
Registers a callback to be used when an input value is issued by the device.
Declaration
void IOHIDDeviceRegisterInputValueCallback(IOHIDDeviceRef device, IOHIDValueCallback callback, void *context);Parameters
- device:
Reference to an IOHIDDevice.
- callback:
Pointer to a callback method of type IOHIDValueCallback.
- context:
Pointer to data to be passed to the callback.
Discussion
An input element refers to any element of type kIOHIDElementTypeInput and is usually issued by interrupt driven reports. If more specific element values are desired, you can specify matching criteria via IOHIDDeviceSetInputValueMatching and IOHIDDeviceSetInputValueMatchingMultiple.
See Also
Miscellaneous
IOHIDDeviceCloseIOHIDDeviceConformsToIOHIDDeviceCopyMatchingElementsIOHIDDeviceCopyValueMultipleIOHIDDeviceCopyValueMultipleWithCallbackIOHIDDeviceCreateIOHIDDeviceGetPropertyIOHIDDeviceGetReportIOHIDDeviceGetReportWithCallbackIOHIDDeviceGetServiceIOHIDDeviceGetTypeIDIOHIDDeviceGetValueIOHIDDeviceGetValueWithCallbackIOHIDDeviceOpenIOHIDDeviceRegisterInputReportCallbackIOHIDDeviceRegisterRemovalCallbackIOHIDDeviceScheduleWithRunLoopIOHIDDeviceSetInputValueMatchingIOHIDDeviceSetInputValueMatchingMultipleIOHIDDeviceSetPropertyIOHIDDeviceSetReportIOHIDDeviceSetReportWithCallbackIOHIDDeviceSetValueIOHIDDeviceSetValueMultipleIOHIDDeviceSetValueMultipleWithCallbackIOHIDDeviceSetValueWithCallbackIOHIDDeviceUnscheduleFromRunLoop