On Fri 30 May 2003, Yuri wrote:
> >>
> >>I'd like to know why 4th button means z=1 and 5th z=-1 and not otherwise
> >>:) It seems to me a little bit alogic.
> >
> >
> >1 = up, -1 = down... :) i guess :) it's a bit arbitary.... :)
> >
>
> piece of my code:
>
> if (ee->z < 0){
> h++;
> if(h == 24) h = 0;
> } else {
> h--;
> if(h == -1) h = 23;
> }
>
Better still:
h=(ee->z<0)?((h++ == 24)?0:h):((h-- == -1)?23:h);
> Oh, i just forget you're in the other semisphere ;)))
>
Some of us don't even know if we are of this planet.
/me smacks myself upside the head.
--
| /*\
Ibukun Olumuyiwa | \ / Join the ASCII Ribbon Campaign
http://xcomputerman.com | X against HTML mail today!
| / \
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel