GCMotion.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. { Parsed from GameController.framework GCMotion.h }
  2. { Types from GCMotion }
  3. {$ifdef TYPES}
  4. type
  5. GCMotionValueChangedHandler = OpaqueCBlock;
  6. {$endif}
  7. {$ifdef TYPES}
  8. type
  9. GCMotionPtr = ^GCMotion;
  10. {$endif}
  11. {$ifdef TYPES}
  12. type
  13. GCAcceleration = record
  14. x, y, z: double;
  15. end;
  16. type
  17. GCAccelerationPtr = ^GCAcceleration;
  18. type
  19. GCRotationRate = record
  20. x, y, z: double;
  21. end;
  22. type
  23. GCRotationRatePtr = ^GCRotationRate;
  24. type
  25. GCQuaternion = record
  26. x, y, z, w: double;
  27. end;
  28. type
  29. GCQuaternionPtr = ^GCQuaternion;
  30. {$endif}
  31. {$ifdef CLASSES}
  32. type
  33. GCMotion = objcclass external (NSObject)
  34. public
  35. {$if not defined(__has_feature)}
  36. function controller: GCController; message 'controller';
  37. {$else}
  38. function controller_: GCController; message 'controller';
  39. {$endif}
  40. procedure setValueChangedHandler(newValue: GCMotionValueChangedHandler); message 'setValueChangedHandler:';
  41. function valueChangedHandler: GCMotionValueChangedHandler; message 'valueChangedHandler';
  42. function gravity: GCAcceleration; message 'gravity';
  43. function userAcceleration: GCAcceleration; message 'userAcceleration';
  44. function attitude: GCQuaternion; message 'attitude';
  45. function rotationRate: GCRotationRate; message 'rotationRate';
  46. end;
  47. {$endif}