How do I force landscape in crosswalk.

Get help using Construct 2

Post » Thu Aug 28, 2014 2:01 pm

window.screen.lockOrientation("landscape");

Put this at the end of your scripts in your index.html file. It should work and worked for me.
B
5
S
1
Posts: 41
Reputation: 455

Post » Thu Aug 28, 2014 2:19 pm

The engine already makes that call if you set the "Orientations" project property to landscape.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Thu Aug 28, 2014 4:39 pm

Well I'm sure ill find other totally useless information to post later. But thanks for responding.
B
5
S
1
Posts: 41
Reputation: 455


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests