Re: Joypad scrolling in gpe-sketchbook?

From: Michael Smith <michael_at_hurts.ca>
Date: Sat, 5 Apr 2003 11:33:49 -0500 (EST)

On Sat, 5 Apr 2003, Luc Pionchon wrote:

> You need to add back a bit more; drawing area to react to KEY_EVENTS,
> and... callback code! Check out GPE-SKETCHBOOK-0_2_1, changes appeared
> just before 0.2.2

Right, OK, I see it now. I thought the ScrolledWindow was handling the key
events but I guess that wouldn't make sense for other things that use it
(text fields and the like?).

With GDK_EVENT_KEY_MASK in the event mask for the window, xstroke will
catch drawing events when it's turned on, but even in the current code
leaving xstroke on and trying to draw just results in strange things
(seems to be a good way to draw straight lines though... xstroke passes
through the button down and up events and nothing in between :)

I'll take a look at the arrow key code later on. I'd also like to add a
button on the toolbar to allow growing the image area if you try to scroll
past the boundaries, if that doesn't sound too far whacked.

Mike
Received on Sat Apr 05 2003 - 16:33:55 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:19:03 EDT