2
0

GCController.inc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. { Parsed from GameController.framework GCController.h }
  2. {$ifdef TYPES}
  3. type
  4. GCControllerPtr = ^GCController;
  5. {$endif}
  6. {$ifdef EXTERNAL_SYMBOLS}
  7. var
  8. GCControllerDidConnectNotification: NSString; cvar; external;
  9. GCControllerDidDisconnectNotification: NSString; cvar; external;
  10. {$endif}
  11. {$ifdef TYPES}
  12. const
  13. GCControllerPlayerIndexUnset = -1;
  14. {$endif}
  15. {$ifdef CLASSES}
  16. type
  17. GCController = objcclass external (NSObject)
  18. public
  19. procedure setControllerPausedHandler(newValue: OpaqueCBlock); message 'setControllerPausedHandler:';
  20. function controllerPausedHandler: OpaqueCBlock; message 'controllerPausedHandler';
  21. function vendorName: NSString; message 'vendorName';
  22. function isAttachedToDevice: ObjCBOOL; message 'isAttachedToDevice';
  23. procedure setPlayerIndex(newValue: NSInteger); message 'setPlayerIndex:';
  24. function playerIndex: NSInteger; message 'playerIndex';
  25. function gamepad: GCGamepad; message 'gamepad';
  26. function extendedGamepad: GCExtendedGamepad; message 'extendedGamepad';
  27. function motion: GCMotion; message 'motion';
  28. class function controllers: NSArray; message 'controllers';
  29. class procedure startWirelessControllerDiscoveryWithCompletionHandler (completionHandler: OpaqueCBlock); message 'startWirelessControllerDiscoveryWithCompletionHandler:';
  30. class procedure stopWirelessControllerDiscovery; message 'stopWirelessControllerDiscovery';
  31. end;
  32. {$endif}