On Fri, 2007-11-02 at 12:05 +0800, Zhu, Peter J wrote:

> After looking insight event_translate() of clutter-event-glx.c, it seems
> that the event can only be detected for special input device since it
> judges only for BUTTON_PRESS event and detect button number of /4/5/6/7.

under X, the 4, 5, 6 and 7 buttons are reserved for scrolling events.

it's been like that for years now, and since the GLX backend is supposed
to run under X11 it's pretty much a given that Clutter should translate
those button presses as scroll events.

> Is my understanding correct?

yes.

> At least in my desktop, scroll-event doesn't take effect.

it might mean that your X configuration is wrong or missing.

the translation is also present in other toolkits, like GTK+, so you can
test if a GTK+ application can generate scroll events.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to