Thank you Richard. Henry
> On Apr 12, 2023, at 5:40 PM, Richard Gaskin via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Henry Lowe wrote: > > > The problem is that when the iPhone is in Landscape Left mode > > (according to the simulator and to Apple’s definition of that mode > > - see below), Livecode is returning Landscape Right. When the > > device is in Landscape Right mode, Livecode returns Landscape > > Left - via the MobileDeviceOrientation function. > > > > Apple’s Definition (developer.apple.com <http://developer.apple.com/>) > > of these two modes: > > > > • LandscapeLeft: > > The device is in landscape mode, with the device held upright and > > the front-facing camera on the left side. > > > > • LandscapeRight: > > The device is in landscape mode, with the device held upright and > > the front-facing camera on the right side. > > > > > > Livecode’s Definition (Dictionary): > > > > • landscape left: the device is being held upward with the home button > > on the left > > > > • landscape right: the device is being held upward with the home > > button on the right > > > > It would appear that these two definitions at odds with each other. > > They are indeed at odds. Apple should update their description to match LC's. > :) > > They seem consistent with one another, except that each uses a part of the > hardware at opposite ends of the phone to define orientation. > > Apple's docs are referencing the camera as the point of reference for > orientation, while LC uses the Home button as the point of reference. So > while "left" and "right" are used differently, you should be able to get the > result you need in LC. > > Use Apple's spec when coding in Apple tools and languages, and LC's when > writing in LC and you should be fine. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > ambassa...@fourthworld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode