the OLPC XO grab button (triggering mouse scrolling using a keypress)
Erik Garrison
erik at laptop.org
Fri Jul 11 14:51:51 PDT 2008
On Fri, Jul 11, 2008 at 04:13:20PM +0100, Alexander Jones wrote:
> 2008/7/11 Erik Garrison <erik at laptop.org>:
> > On Thu, Jul 10, 2008 at 11:02:54AM +0100, Alexander Jones wrote:
> >> Can you not patch the toolkits instead of synthesizing button 4-7
> >> events? I'd reckon you could have much smoother and more controllable
> >> scrolling, that way.
> >
> > Alexander, which toolkits are you referring to? I'm an X newbie.
>
> Have GTK itself listen for the key press, grab the pointer and then
> process the mouse events by scrolling whatever has the mouse focus
> (under the pointer).
I am currently using glib/GDK to register a callback function which
handles the scrolling when the button is pressed. Do you mean something
different?
More information about the xorg
mailing list