[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] capture keystrokes in the terminal from which pgame launched?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] capture keystrokes in the terminal from which pgame launched?
- From: Ari Krupnik <ari@xxxxxxxx>
- Date: Fri, 11 Aug 2006 17:27:32 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Fri, 11 Aug 2006 20:14:40 -0400
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)
When I start my pygame application from an xterm, and the focus is on
the xterm, keys I type into xterms are not processed. I would like to
have access to these keystrokes similarly to how I can read BUTTONDOWN
events from the event queue. One thing I can do is use
pygame.event.set_grab, but that captures all keystrokes everywhere. I
just want the keystrokes that I type into the pygame window or its
parent xterm.
Ari.
--
Elections only count as free and trials as fair if you can lose money
betting on the outcome.