Millisecond Forums

orientation lock on iOS

https://forums.millisecond.com/Topic18888.aspx

By sdandeneau - 4/11/2016

Hi, 

How can I "lock" the orientation to "portrait" when running on iOS? That is, when running on iPhone of iPad, the task reverts to a landscape orientation, regardless of the orientation of the device. By forcing the orientation in portrait, it would make the stimuli larger on the screen. 

Thanks in advance, 
Stéphane
By Dave - 4/12/2016

As far as I am aware, this isn't possible (at least not currently). At present Inquisit enforces landscape orientation on iOS devices to keep the layout relatively consistent across different types of devices: Monitors on regular laptops or desktop computers typically have landscape orientation (i.e., they are wider than they are high). Scripts are typically designed assuming a landscape-layout in terms of their visual components (relative positions and sizes of objects, etc.), and would not translate well to a portrait-layout.

Hope this helps.
By erikb - 5/12/2016

actually, it is possible.  The Inquisit Player defaults to landscape to maintain consistency, but the behavior can be overridden by the canvas.

To lock in portrait mode you need to specify a canvas that has a larger height than width.

For Portrait on iPad/iPhone:
<defaults>
/ canvasaspectratio = (3,4)
</defaults>


Or whatever you feel is appropriate.  It can also be accomplished using "/ canvassize" with appropriate sizes.
For Portrait on iPad/iPhone:
<defaults>
/ canvassize = (99%,100%)
</defaults>