[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pygame] Problem with some keys
- To: pygame-users@seul.org
- Subject: [pygame] Problem with some keys
- From: Guillaume Proux <gproux@acesoliton.com>
- Date: Mon, 28 Oct 2002 00:58:12 +0900
- Delivered-To: archiver@seul.org
- Delivered-To: pygame-users-outgoing@seul.org
- Delivered-To: pygame-users@seul.org
- Delivery-Date: Sun, 27 Oct 2002 10:58:28 -0500
- Reply-To: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1) Gecko/20020826
Hi,
I have a Japanese Windows 98 with a jp106 keyboard. For some of the keys
on my keyboard
I do receive a KEYDOWN event but I find no way to find which key was
pressed!!!!
For example here, I pressed ["^" "@" ":" ] in order
and printed the received events...
<Event(2-KeyDown {'mod': 4096, 'key': 0, 'unicode': u''})>
<Event(3-KeyUp {'mod': 4096, 'key': 0})>
<Event(2-KeyDown {'mod': 4096, 'key': 0, 'unicode': u''})>
<Event(3-KeyUp {'mod': 4096, 'key': 0})>
<Event(2-KeyDown {'mod': 4096, 'key': 0, 'unicode': u''})>
(and trying to get pygame.key.get_pressed() does not work better... it
says that the pressed key is 0
which I assume means KUNKNOWN)
Is there some dependency on an American layout keyboard (or a 101 key
keyboard?) (sounds like a (SDL?) localization bug to me!)
Guillaume
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org