Custom GCController subclass for new hardware?

Hi all,

Wondering how I would go about creating a plugin/class to support a new (physical/hardware) device with the game controller framework?

Between GCVirtualController on iOS and the "KeyboardAndMouseSupport.bundle" I see inside GameController.framework on my Mac, it looks like the framework must be designed to support this but I can't find any documentation.

Thanks!

Answered by Frameworks Engineer in 872177022

Hi Thomas

The Game Controller framework does not support extension by third parties. If you are trying to add support for this device to your own macOS application, using IOKit for direct HID/USB access is one option. I'd suggest looking at IOHIDManager or IOUSBLib in IOKit framework.

Are you (or your company) the developer of this new hardware device?

-- Justin

Accepted Answer

Hi Thomas

The Game Controller framework does not support extension by third parties. If you are trying to add support for this device to your own macOS application, using IOKit for direct HID/USB access is one option. I'd suggest looking at IOHIDManager or IOUSBLib in IOKit framework.

Are you (or your company) the developer of this new hardware device?

-- Justin

Custom GCController subclass for new hardware?
 
 
Q