[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] Problem with some keys



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