Detect mobile device orientation

Get help using Construct 2

Post » Sun Jul 22, 2012 3:32 pm

Hi,

is there a method to detect the mobile devices orientation, since I'm not using appMobi ( the app is intended as HTML5 browser game )? I tried comparing WindowWidth vs WindowHeight and assume that as long the width is smaller, the device is in portrait mode. Comparison made on every tick. Not working. Any thoughts?
B
16
S
4
G
3
Posts: 46
Reputation: 2,875

Post » Sun Jul 22, 2012 4:09 pm

Please disregard this post. Problem solved with the help of WindowWidth comparison against WindowHeight. Thanks anyway for looking into it.
B
16
S
4
G
3
Posts: 46
Reputation: 2,875


Return to How do I....?

Who is online

Users browsing this forum: fredriksthlm and 17 guests