---
title: "supportsHIDDevice(_:)"
framework: gamecontroller
role: symbol
role_heading: Type Method
path: "gamecontroller/gccontroller/supportshiddevice(_:)"
---

# supportsHIDDevice(_:)

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

## Declaration

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

## Parameters

- `device`: A human interface input device.

## Return Value

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

## Discussion

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

- [isAttachedToDevice](gamecontroller/gccontroller/isattachedtodevice.md)
- [shouldMonitorBackgroundEvents](gamecontroller/gccontroller/shouldmonitorbackgroundevents.md)
