<br><br><div class="gmail_quote">On Mon, Sep 7, 2009 at 6:41 PM, Denis Johnson <span dir="ltr">&lt;<a href="mailto:denis.johnson@gmail.com">denis.johnson@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">On Tue, Sep 8, 2009 at 7:44 AM, Rui Miguel Silva Seabra&lt;<a href="mailto:rms@ansol.org">rms@ansol.org</a>&gt; wrote:<br>
&gt; On Mon, Sep 07, 2009 at 09:36:21PM +0200, Michael &#39;Mickey&#39; Lauer wrote:<br>
&gt;&gt; I&#39;m sketching a simple device orientation API for FSO. The purpose is to be<br>
&gt;&gt; informed about changes in the physical device orientation. My first take is at<br>
&gt;&gt; <a href="http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Device.Orientation.html;hb=HEAD" target="_blank">http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Device.Orientation.html;hb=HEAD</a><br>


&gt;&gt;<br>
&gt;&gt; Basically, it&#39;s sending you a string whenever the orientation changes. Valid<br>
&gt;&gt; substrings contain &quot;portrait&quot;, &quot;landscape&quot;, &quot;faceup&quot;, &quot;facedown&quot;.<br>
&gt;&gt;<br>
&gt;&gt; Comments?<br>
&gt;<br>
&gt; I agree wholeheartedly. omnewrotate was only a way to do &quot;rotation&quot; better than<br>
&gt; the alternatives, but such use of accelerometers is too shallow.<br>
&gt;<br>
&gt; IMHO it&#39;s better that the position is declared as sets of angles and that<br>
&gt; &quot;portrait&quot;, et all be &quot;aliases&quot; for certan sets of angles within a certain<br>
&gt; tolerance, that certain listening apps would only pay attention to.<br>
&gt;<br>
&gt; This way, perhaps, one could mix flexibility with ease?<br>
<br>
</div>+1<br>
<br>
Perhaps one should be able to define the sets and aliases and that a<br>
set does not only include one axis, so that an alias such as<br>
&quot;top-left-down&quot; are possible.<br>
<br>
Thinking further, is it likely for different apps to want to use<br>
different resolutions so for example mokomaze will want pretty high<br>
resolution but another app that starts up may request/ inject (my<br>
term) an additional set/alias to be reported.<br>
<br>
cheers Denis<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
<a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br></div></div></blockquote><div><br>+1 for the proposed API.  I&#39;d love a dbus message to be sent on portrait and landscape.<br>

Though I think you would probably need portrait, reversePortrait, landscape, and reverseLandscape (to specify which side of the device is &quot;up&quot; in each mode)<br><br>However, I tend to think that this functionality probably wouldn&#39;t be as suited to something like mokomaze.  <br>

More for applications that just want a few different positions to be notified on. (Like the proposed few)  <br>Applications that need finer granularity such as Mokomaze should probably still read the accelerometers directly.<br>

<br>Just my two cents though.<br><br>Thanks Mickey!<br>-Dan Staley<br><br><br><br></div></div>