Contents

supportsHIDDevice(_:)

Returns a Boolean value that indicates whether the framework supports the specified human interface device.

Declaration

class func supportsHIDDevice(_ device: IOHIDDevice) -> Bool

Parameters

  • device:

    A human interface input device.

Return Value

true if the framework supports the device; otherwise, false.

Discussion

If the Game Controller framework supports the input device, you can use the Game Controller APIs to interact with the device instead of the IOKit APIs.

See Also

Inspecting a controller