On Sun, 01 Jun 2003 07:48:28 +0600 Yuri <[EMAIL PROTECTED]> babbled:
>
> >>>>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);
>
> h=(ee->z<0)?((++h == 24)?0:h):((--h == -1)?23:h); actually ;)
>
> But can someone point me to DirectFB or PicoGUI or GTK+ where 4th button
> has 1 as a direction and 5th has -1 direction? 4 < 5, afair :)
>
> Honestly, i'd like to make it clear. If i scroll wheel forward (xev
> shows 5th button press), usually things go to it's top.
to date allmy experiences have been button 4 = up, button 5 = down. it's pretty
arbitary. 1 = going up, -1 = going down.
--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
The Rasterman (Carsten Haitzler) [EMAIL PROTECTED]
[EMAIL PROTECTED]
Mobile Phone: +61 (0)413 451 899 Home Phone: 02 9698 8615
-------------------------------------------------------
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