Force horizontal orientation on mobile devices
Janne

Hi,
is there ready in the wade code some setting to force view orientation be always horizontal?
Example, when browse game with mobile devise, it will show view horizontal orientation (rotate 90 decress whole view),
so user know immediately to rotate device to see game right.

I know its possible to do with external script, but if there is way in wade to do that, it would be nice :)

All 2 Comments
Gio

Hi Janne

Sure, you can do this in your wade app:

wade.forceOrientation('landscape');

or directly in your scene data (in the wsc file), if you set

"orientation": "landscape"

 

Janne

Thank you!

Directly in scene data (wsc) is bullet proof way, thanks :)

Post a reply
Add Attachment
Submit Reply
Login to Reply