[10171] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Game development - keystroke detection question.
daemon@ATHENA.MIT.EDU (Jeff Garzik)
Mon Nov 16 10:51:18 1998
To: gtk-list@redhat.com
Date: Mon, 16 Nov 1998 10:49:26 -0500 (EST)
Reply-To: jgarzik@pobox.com
In-Reply-To: <Pine.OSF.3.91.981116140110.18326A-100000@shannon.csis.ul.ie> from "laur Ivan" at Nov 16, 98 02:03:32 pm
From: Jeff Garzik <jgarzik@pobox.com>
Resent-From: gtk-list@redhat.com
On Sun, 15 Nov 1998, Eric Harlow wrote:
> Ok, so I started the game after getting many good ideas and I'm quite
> far along except that I don't like the key_press_event and the
> key_release_event. I haven't looked into it, but I'm still working on
> the graphics and wondered if anyone can help me with this - or point
> me somewhere.
>
> Few problems are:
>
> Holding down 1 key and pressing another results in the second key
> being repeated. No indication that the first key is being pressed.
> This is bad when you're fleeing a group of bad guys (full thrust key)
> while firing (missile key). Is there a way to get a list of the keys
> currently pressed?
You need to keep track of this yourself. That's how you handle one key
being presses before another is released.
> This would also fix the problem with the shift/ctrl keys where they
> send a "key_press_event" but don't send a "key_release_event".
This is interesting. I forget why it does this, but you can definitely
work around in X11. I will dig through source code...
--
If the upshot of [my plan] is that binaries "go away" off Usenet, that's
fine with me as a "side effect".
- Karl Denninger, news.admin.net-abuse.usenet
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null