Post gamepad HID events to the system

Wondering if it possible to post HID Gamepad events to the system similar to keyboard and mouse NSEvent or CGEvent.

I am able to monitor gamepad events and get the usage value via IOHIDElementGetUsage (48 and 49 for the axis) and the value via IOHIDValueGetIntegerValue.

I would like to generate these same events from code to simulate them without any actual controller attached to the system.

Post gamepad HID events to the system
 
 
Q