[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Accounting for Pressed Keys
- To: <pygame-users@xxxxxxxx>
- Subject: [pygame] Accounting for Pressed Keys
- From: "Ryan Strunk" <ryan.strunk@xxxxxxxxx>
- Date: Sun, 25 Mar 2012 10:08:49 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 25 Mar 2012 11:09:00 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; bh=QLAyYatoF1FNoXlnJUpY0jCEElFIQ8CATonHGGNIvyo=; b=0dnkJtua57M5aEztaEfMsED8OBWacACz8/mSQMksLW2ziKEEtnDAKVdh8wOSaODkx1 2Vkygz2OWyoyX5kLezQhMBI4tYk2Wi95lnTjE6x2pehu/J10z+e4G3aX/aH9JgnDIUny XCzdbiwt/bwlJVUpSm+AYrbFyyxjrNshY+PiCHzhOuZBqZlc6XMhnygUYZ9dixdkVCZW iGRpB22zXdmJRTul3Bc1aS0xEzdfeOlnkSxpSPDozsp6qqXsn/IvXpgdBnM6PRrIh4U8 TXYclLGYZGnpplIGMr4PmYLTZDofdchdhp3RCoP1hMxCcSoTLGmlOLTKamUpIh9rty3Y koxw==
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- Thread-index: Ac0KmSzFv0Vqv6CDTpaVzl17DbQH9Q==
Hi everyone,
I'm closer to solving my arrow key problem with regard to getting pyHook to
snag the arrow keys first. I've blocked the four arrow keys, and I've used
the block to put a KEYDOWN event on the Pygame queue. The problem, though,
is that now Pygame receives a key down event several times a second.
My goal in all of this is to try to figure out how Pygame accounts for
pressed keys. Does Pygame have a special event for pressed keys that I could
generate, or does it get its data elsewhere.
Thanks for any help you can provide.
All the best,
Ryan