Moved Core Motion Stuff

This commit is contained in:
Dallon Archibald
2021-01-27 21:16:01 -05:00
parent 4d2f363f8a
commit 50d79cfc40
-18
View File
@@ -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")
}
}
}
}
}
*/