2
votes
Using the Accelerometer in an iOS FireMonkey app
The Hacker's Corner
– Special thanks to Eugene Kryukov and Phil Hess for this stuff! Check out CodeRage 6 for a cool implementation! Enjoy! implementation {$R *.lfm} type UIAcceleration = objcclass external (NSObject) public function timestamp: NSTimeInterval; message ‘timestamp’; function x: UIAccelerationValue; message ‘x’; function y: UIAccelerationValue; message ‘y’; function z: UIAccelerationValue; message ‘z’; end; AccDelegate = objcclass(NSObject) procedure accelerometer_didAccelerate(accelerometer: UIAccelerometer; acceleration: UIAcceleration); message ...
Statistics
|
Visits by Source |
User Actions |




