IOHIDDeviceRegisterInputValueCallback(device, input_callback, (__bridge void*)controller);
Joystick *js = [[Joystick alloc] initWithDevice:device];
js.index = findAvailableIndex(controller.joysticks, js);
- [js populateActions];
[[controller joysticks] addObject:js];
[controller->outlineView reloadData];
}