nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Re: Newbie problems
From: Greg Haerr
Date: Fri, 21 Jan 2000 10:02:51 -0700

: I think that could be something related with the low level driver. It
: works different than the x11 mouse driver, because the last one always
: returns absolute positions (return 2). In my PDA, when the touchpad is
: pressed I return the position and LBUTTON press (return 2), but when the
: button is released, I return 3 and *bp=0, to show that the button has been
: released. Isn't this the wright way? 


Yeah, I think it's your driver.  Instead of returning 3, why don't you return
2 and include the old mouse coordinates.  I think that will work.  It seems
that we might have a fix required in the mid level when a driver returns 3:
it should use the old x,y values and probably isn't.  I'll check into this,
but you can probably get fixed by returning 2.

Regards,

Greg



nanogui@linuxhacker.org