I've found some good explanations at:
http://classicteck.com/rbarticles/mackeyboard.php

It's like the UCKeyTranslate could be helpful:

UCKeyTranslate:
Converts a combination of a virtual key code, a modifier key state,
and a dead-key state into a string of one or more Unicode characters.

http://developer.apple.com/documentation/Carbon/Reference/Unicode_Utilities_Ref/Reference/reference.html#//apple_ref/doc/c_ref/UCKeyTranslate


Nicolas

On Mar 26, 9:34 pm, Alex Holkner <[email protected]> wrote:
> On Fri, Mar 27, 2009 at 5:56 AM, Nicolas Rougier
>
> <[email protected]> wrote:
>
> > Hi,
>
> > There may be a problem with keyboard layout on macos, program below
> > gives me the following output:
>
> > Q was pressed
> > a
> > A was pressed
> > q
>
> > Anyone confirms ?
>
> I can confirm it (using a US keyboard with French layout).  The
> problem is because pyglet maps Quartz key codes, which are based on a
> US keyboard layout, to pyglet key symbols directly.  On Windows pyglet
> first attempts to translate the virtual key code through the current
> keyboard layout map.  I've opened issue 405 to track the issue.
> Patches welcome!
>
> Alex.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to