[pygame] keyboard layout problems

2008-12-03 Thread Gregor Lingl
I'm using pygame on a computer with a German keyboard on a Windows machine. On this keyboard y and z keys are exchanged for example. Now - on my machin - event.key == K.z gets True if I pressed the y key and vice versa. How can I overcome this? (I know that this problem doesn't occur atleast on

Re: [pygame] keyboard layout problems

2008-12-03 Thread Peter Shinners
Gregor Lingl wrote: I'm using pygame on a computer with a German keyboard on a Windows machine. On this keyboard y and z keys are exchanged for example. Now - on my machin - event.key == K.z gets True if I pressed the y key and vice versa. How can I overcome this? (I know that this problem

Re: [pygame] keyboard layout problems

2008-12-03 Thread Ian Mallett
If worst comes to worst, you could just set K_z, K_y, and so on. That's obviously not an ideal solution; I hope fixing it like Peter says works. Ian

Re: [pygame] extending mask module?

2008-12-03 Thread Lenard Lindstrom
Regarding shared (dynamic) libraries I am have only used Windows DLLs. Unix shared libraries are similar. Michael George wrote: The part I was and am still a bit confused about is name clashes. If I understand correctly, python extension modules are supposed to only export the initmodule

[pygame] patch to export mask api

2008-12-03 Thread Michael George
I've attached a patch that exposes the mask api in a separate header file. Right now it only provides the type object. It follows the same convention as the other exported apis. --Mike /* Copyright (C) 2002-2007 Ulf Ekstrom except for the bitcount function. This wrapper code was