orientation lock on iOS


orientation lock on iOS

Author
Message
sdandeneau
sdandeneau
Distinguished Member
Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K 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
Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)

Group: Administrators
Posts: 9.8K, Visits: 46K
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
Respected Member (404 reputation)Respected Member (404 reputation)Respected Member (404 reputation)Respected Member (404 reputation)Respected Member (404 reputation)Respected Member (404 reputation)Respected Member (404 reputation)Respected Member (404 reputation)Respected Member (404 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


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search