<br><br><div class="gmail_quote">On Mon, Sep 7, 2009 at 6:41 PM, Denis Johnson <span dir="ltr"><<a href="mailto:denis.johnson@gmail.com">denis.johnson@gmail.com</a>></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<<a href="mailto:rms@ansol.org">rms@ansol.org</a>> wrote:<br>
> On Mon, Sep 07, 2009 at 09:36:21PM +0200, Michael 'Mickey' Lauer wrote:<br>
>> I'm sketching a simple device orientation API for FSO. The purpose is to be<br>
>> informed about changes in the physical device orientation. My first take is at<br>
>> <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>
>><br>
>> Basically, it's sending you a string whenever the orientation changes. Valid<br>
>> substrings contain "portrait", "landscape", "faceup", "facedown".<br>
>><br>
>> Comments?<br>
><br>
> I agree wholeheartedly. omnewrotate was only a way to do "rotation" better than<br>
> the alternatives, but such use of accelerometers is too shallow.<br>
><br>
> IMHO it's better that the position is declared as sets of angles and that<br>
> "portrait", et all be "aliases" for certan sets of angles within a certain<br>
> tolerance, that certain listening apps would only pay attention to.<br>
><br>
> 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>
"top-left-down" 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'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 "up" in each mode)<br><br>However, I tend to think that this functionality probably wouldn'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>