Orientation lock ?

Hello all.

I have a game where I’d like to support landscapeLeft and landscapeRight orientations. Some of my levels are controlled with tilting (zero Gravity). The problem is that when I tilt forward enough, the onOrientationEvent gets triggered and the screen rotates. As you can imagine this is extremely annoying.

Is there any way that I can disable orientation changes at certain points of the game (during tilt controlled levels) ? Or is the only solution supporting just landscapeLeft or landscapeRight, but not both ?

thank you! [import]uid: 39057 topic_id: 15813 reply_id: 315813[/import]

I believe the only way to do this currently is by supporting just landscapeLeft or landscapeRight.

I understand some devs don’t like to do that as Apple wants both supported, however I have previously submitted games only supporting one or the other (for reasons like yours, tilt and gravity) and have had no issues, so I believe there is room for movement when need be.

Peach :slight_smile: [import]uid: 52491 topic_id: 15813 reply_id: 58569[/import]

hmmm. I can’t say that I am happy, but thanks for the reply.

Are there any immediate plans to include such control into Corona SDK ? It would seem (at least to me) like something that developers would/should expect to be available. Might be just me though.

cheers. [import]uid: 39057 topic_id: 15813 reply_id: 58920[/import]

Subscribers can request such features easily in the feature request forum - all of the requests are looked at.

Peach [import]uid: 52491 topic_id: 15813 reply_id: 59040[/import]