Skip to content
Snippets Groups Projects
Commit c573d684 authored by lukasWoyke's avatar lukasWoyke
Browse files

adjustment conrtoller flip

parent d2904ff4
No related branches found
No related tags found
3 merge requests!62Fix master,!60Code cleanup lukas fix,!57Hot fix gyroscope
......@@ -119,7 +119,7 @@ class GameGyroscopeController {
var dy = newAcc.x - initialX
// Adjust movement when user olds device in LandscapeRight orientation.
if UIDevice.current.orientation == .landscapeLeft {
if newAcc.x > 0{
dx *= (-1)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment