This happens because you’re not touching the iOS screen. The workaround is to disable the sleep timeout when the MOGA Ace is detected.
Screen.sleepTimeout = SleepTimeout.NeverSleep;
When the MOGA Ace is disconnected / off. Reset the sleep timeout back to it’s system setting.
Screen.sleepTimeout = SleepTimeout.SystemSetting;
Sweet! I just stumbled on this myself with a moga on ios. How do you detect if the moga is connected/disconnected? I'd like to turn the onscreen controls back on if the moga battery dies too.
Sweet! I just stumbled on this myself with a moga on ios. How do you detect if the moga is connected/disconnected? I'd like to turn the onscreen controls back on if the moga battery dies too.
– masterchafe[Unity3D Blog][1] [1]: http://blogs.unity3d.com/2013/10/11/unity-4-2-2-brings-ios-game-controller-support/
– idunlop_oefunThanks dude!
– masterchafe