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

Re: [pygame] Problem with some keys



Guillaume Proux wrote:
> 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!)

i know SDL works with many european keyboard layouts. i'm surprised to see
the keycode is coming back as "0" i didn't think SDL would do that. it
certaily seems like an SDL problem to me also, but i'm not sure how best to
report the problem.

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org