Device Orientation API
Patryk Benderz
Patryk.Benderz at esp.pl
Thu Sep 10 09:45:43 CEST 2009
[cut]
> Basically, it's sending you a string whenever the orientation changes. Valid
> substrings contain "portrait", "landscape", "faceup", "facedown".
IMHO using integers where (x,y,z) are -1,0 or 1, would be better idea.
This way you could make mathematical operations on this. Or use a
conditions like: (x=1,y>=0,z<0). There is already some info about axis
on wiki somewhere
--
Patryk "LeadMan" Benderz
Linux Registered User #377521
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
Email secured by Check Point
More information about the community
mailing list