← Back to team overview

touch-packages team mailing list archive

[Bug 1382209] Re: [Enhancement] Add an API to lock surface orientation

 

I've been trying to integrate with the system rotation instead of doing
it myself for neverball, neverputt and tuxracer.

mir_surface_set_preferred_orientation doesn't seem to do anything on my
bq aquaris, with or without X-Ubuntu-Supported-Orientations in the
desktop file, is this due to missing shell support?

I want to change the orientation according to user preference, but not
have the system auto rotate, as that conflicts with using the
accelerometer to control the game.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mir in Ubuntu.
https://bugs.launchpad.net/bugs/1382209

Title:
  [Enhancement] Add an API to lock surface orientation

Status in Mir:
  Fix Released
Status in mir package in Ubuntu:
  Fix Released

Bug description:
  Sometimes, applications are written to take advantage of the entire surface of screen. So they need a way to tell MIR, the orientation they want for drawing themselves. This can be portrait for some, landscape for others, or even combinations.
  Without this feature, portrait application get distorted when running in a landscape oriented device.

  So, it would be nice to have an API, in MIR client, to precisely lock
  the orientation of the MirSurface used for drawing.

  My use case is a full-screen game, that require always Portrait
  Orientation. Another is a full-screen game that requires always
  Landscape.

  Better (future):
  - allow this even for non full-screen applications
  - allow combination like Portait+PortraitUpsideDown, or LandscapeLeft+LandscapeRight
  - allow to change the orientation when the application run (so not only when creating/requesting the surface).

  Remarks :
  - touch event may need to be translated into the correct coordinates system!

To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1382209/+subscriptions