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);
};