I set a filter to capture all events on the GtkEntry (using
gdk_window_set_filter and gdk_window_set_events) and saw that the GtkEntry
only received events 2 and 3 when pressing the pad center (even when the
entry didn't have the focus) and nothing at all when I released it. Does X
produce button up events for the pad?
Thanks,
D
>From: Philip Blundell <pb@nexus.co.uk>
>To: DL <dlacct@hotmail.com>
>CC: gpe@handhelds.org
>Subject: Re: [Gpe] Mapping buttons to mouse events
>Date: 03 May 2003 00:22:37 +0100
>
>On Sat, 2003-05-03 at 00:06, DL wrote:
> > Can the Pad-center press and release events be mapped to button_press
>and
> > button_release for any button widget that has the focus? Eg, to allow
>the
> > user to navigate to a GtkEntry field with the pad and simulate a
> > stylus-down/stylus-up sequence?
>
>The centre of the pad just generates ordinary key events (for KP_Enter
>at present, though I'm kind of tempted to change this to Return). I'm
>not sure that mapping these to mouse button taps would be generally
>useful, but there is no reason you couldn't arrange that in your own
>application.
>
>p.
>
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
Received on Sat May 03 05:11:40 2003
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:41:31 EDT