-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO.txt
29 lines (22 loc) · 886 Bytes
/
TODO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Test if we need it:
----
```
Stage.shouldRotateInterface = function (orientation:Int):Bool {
if (initOrientation == Stage.OrientationLandscapeLeft
|| initOrientation == Stage.OrientationLandscapeRight
|| initOrientation == Stage.OrientationLandscapeAny
) {
return (orientation == Stage.OrientationLandscapeLeft || orientation == Stage.OrientationLandscapeRight);
}
if (initOrientation == Stage.OrientationPortrait
|| initOrientation == Stage.OrientationPortraitUpsideDown
|| initOrientation == Stage.OrientationPortraitAny
) {
return (orientation == Stage.OrientationPortrait || orientation == Stage.OrientationPortraitUpsideDown);
}
return false;
}
```
`initOrientation = Stage.getOrientation ();` (but must be done at resize event, otherwise 0 if too early)
----
Credits to: [email protected]