0 Favourites

How do I lock rotation on Intel XDK exporter?

  • Hello,

    I would like know how to lock the rotation of the screen when exporting using the Intel XDK?

    I ready somewhere this:

    Added use of the AppMobi.device.setRotateOrientation("landscape"); and AppMobi.device.setAutoRotate(false);

    html5dev-software.intel.com/viewtopic.php

    But where? Since I can't find the file to edit.

    EDITED: Oh, I found it, it's inside the index.html and you need to find the line:

              function onGameReady()

              {

                   cr_sizeCanvasDC();

                   AppMobi.device.hideSplashScreen();

              };

    and add:

              function onGameReady()

              {

                   cr_sizeCanvasDC();

                   AppMobi.device.hideSplashScreen();

                   AppMobi.device.setRotateOrientation("landscape");

                   AppMobi.device.setAutoRotate(false);

              };

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • TELLES0808 I know this post is old, but if you're still looking If you have the "XDK" object in your project list you can simply create an

    "On Start of Layout" --> "Set orientation to Landscape/Portrait"

    Using the XDK object.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)