IOS7 MOGA Ace Power controller Issue

Hi.
Im finded bugs.
With the game on the controller occurs automatic screen lock.

Steps:

1.Launch the AUT.

2.Play a 1-5 minutes on the IOS controller

3.Automatic screen lock…

Info:
Device “Iphone 5s”;
Firmware “IOS 7 (1.00.06)”;
Gamepad “MOGA Ace Power - Extended”;

1 Answer

1

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.

[Unity3D Blog][1] [1]: http://blogs.unity3d.com/2013/10/11/unity-4-2-2-brings-ios-game-controller-support/

Thanks dude!