orientation lock on iOS


Author
Message
sdandeneau
sdandeneau
Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)
Group: Forum Members
Posts: 37, Visits: 136
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
Dave
Dave
Supreme Being (776K reputation)Supreme Being (776K reputation)Supreme Being (776K reputation)Supreme Being (776K reputation)Supreme Being (776K reputation)Supreme Being (776K reputation)Supreme Being (776K reputation)Supreme Being (776K reputation)Supreme Being (776K reputation)
Group: Administrators
Posts: 9.9K, Visits: 49K
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.

erikb
erikb
Respected Member (460 reputation)Respected Member (460 reputation)Respected Member (460 reputation)Respected Member (460 reputation)Respected Member (460 reputation)Respected Member (460 reputation)Respected Member (460 reputation)Respected Member (460 reputation)Respected Member (460 reputation)
Group: Moderators
Posts: 7, Visits: 164
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>







Developer at Millisecond Software, LLC.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search