Patryk Benderz schrieb: > [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 > ... and for putting this together, one could make macro(tests) ot the integers: portrait := (x,y,z) =~ (90,0,270)
_______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community