Moved Core Motion Stuff
This commit is contained in:
@@ -170,21 +170,3 @@ class RPS
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
//Reference: https://youtu.be/XDuchXYiWuE
|
||||
class Shake {
|
||||
var motionManager = CMMotionManager()
|
||||
|
||||
func viewDidAppear(_ animated: Bool) {
|
||||
motionManager.accelerometerUpdateInterval = 0.2
|
||||
|
||||
motionManager.startAccelerometerUpdates(to: OperationQueue.current!) { (data,error) in
|
||||
if let myData = data {
|
||||
if myData.acceleration.x > 5 {
|
||||
print("DO SOMETHING SPECIAL")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user