Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

## enlightenment-devel

 [E-devel] mouse wheel z-value From: Yuri - 2003-05-30 01:13:05 ```Hi there, 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. Yuri ```
 Re: [E-devel] mouse wheel z-value From: Carsten Haitzler (The Rasterman) - 2003-05-30 02:06:49 ```On Fri, 30 May 2003 07:09:38 +0600 Yuri babbled: > > > Hi there, > > 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.... :) -- --------------- Codito, ergo sum - "I code, therefore I am" -------------------- The Rasterman (Carsten Haitzler) raster@... raster@... Mobile Phone: +61 (0)413 451 899 Home Phone: 02 9698 8615 ```
 Re: [E-devel] mouse wheel z-value From: Yuri - 2003-05-30 17:29:04 ```>> >>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; } Oh, i just forget you're in the other semisphere ;))) ```
 Re: [E-devel] mouse wheel z-value From: Ibukun Olumuyiwa - 2003-05-31 05:39:41 ```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! | / \ ```
 Re: [E-devel] mouse wheel z-value From: Yuri - 2003-06-01 01:51:49 ```>>>>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. ```
 Re: [E-devel] mouse wheel z-value From: Carsten Haitzler (The Rasterman) - 2003-06-01 02:37:14 ```On Sun, 01 Jun 2003 07:48:28 +0600 Yuri 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) raster@... raster@... Mobile Phone: +61 (0)413 451 899 Home Phone: 02 9698 8615 ```
 Re: [E-devel] mouse wheel z-value From: Tilman Sauerbeck - 2003-10-18 12:20:37 ```Carsten Haitzler [2003-06-01 13:46]: > > 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. Agreed, that's what it *should be* like. But the current code looks like this: if (xevent->xbutton.button == 4) e->z = -1; else if (xevent->xbutton.button == 5) e->z = 1; Is there any good reason to keep it this way? Looks like it's a typo anyway. -- Regards, Tilman ```
 Re: [E-devel] mouse wheel z-value From: Carsten Haitzler (The Rasterman) - 2003-10-19 14:13:06 ```On Fri, 17 Oct 2003 22:32:36 +0200 Tilman Sauerbeck babbled: > Carsten Haitzler [2003-06-01 13:46]: > > > 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. > > Agreed, that's what it *should be* like. > > But the current code looks like this: > > if (xevent->xbutton.button == 4) e->z = -1; > else if (xevent->xbutton.button == 5) e->z = 1; > > Is there any good reason to keep it this way? Looks like it's a typo > anyway. it also matches screen co-ordinates... down increases y (ie +1) up decreases y (-1).... it's fairly arbitary... :) -- --------------- Codito, ergo sum - "I code, therefore I am" -------------------- The Rasterman (Carsten Haitzler) raster@... 熊耳 - 車君 raster@... Mobile Phone: +61 (0)413 451 899 Home Phone: 02 9698 8615 ```
 Re: [E-devel] mouse wheel z-value From: Ben Ford - 2003-10-19 19:26:16 Attachments: smime.p7s ```Carsten Haitzler (The Rasterman) wrote: >On Fri, 17 Oct 2003 22:32:36 +0200 Tilman Sauerbeck >babbled: > > > >>Carsten Haitzler [2003-06-01 13:46]: >> >> >>>>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. >>> >>> >>Agreed, that's what it *should be* like. >> >>But the current code looks like this: >> >>if (xevent->xbutton.button == 4) e->z = -1; >>else if (xevent->xbutton.button == 5) e->z = 1; >> >>Is there any good reason to keep it this way? Looks like it's a typo >>anyway. >> >> > >it also matches screen co-ordinates... down increases y (ie +1) up decreases y >(-1).... it's fairly arbitary... :) > > You know, as often as this question comes up, it should be in the FAQ ;) -b -=-=- ... "Married, eight children. Prefer frequent travel." * TagZilla 0.049 ```
 Re: [E-devel] mouse wheel z-value From: Ibukun Olumuyiwa - 2003-06-01 02:38:35 ```On Sun 01 Jun 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); > > h=(ee->z<0)?((++h == 24)?0:h):((--h == -1)?23:h); actually ;) > I knew something was wrong! I just knew it! AAAARRRGGHHH! -- | /*\ Ibukun Olumuyiwa | \ / Join the ASCII Ribbon Campaign http://xcomputerman.com | X against HTML mail today! | / \ ```
 Re: [E-devel] mouse wheel z-value From: Valdis.K - 2003-06-01 02:59:48 Attachments: Message as HTML ```On Sun, 01 Jun 2003 07:48:28 +0600, Yuri said: > > 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 ;) http://www.ioccc.org ;) ```