Jump to content

Trouble AZERTY Keyboard on OSX,


photo

Recommended Posts

Hi, I have a little trouble on OSX, I try to grab the CMD + Z, but It does't work when I try using : 

 

engine.app.getKeyState(122) or engine.app.getKeyState('z'), it doesn't work. I need to press w for it work.

I download an app Key codes for check my keyboard when I press Z return : 

 

Characters :      z

Unicode :          122 / 0x7a

Keys :                Z

Key Code :        13 / 0xd

Modifiers :         256 / 0x100

 

If I print a log inside the key_down function just before the translate_key :

 

2014-06-16 10:39:21.466 Editor_x64d[38895:507] Characters : z

2014-06-16 10:39:21.466 Editor_x64d[38895:507] Key Code : 13 / 0x0d

2014-06-16 10:39:21.466 Editor_x64d[38895:507] Modifiers : 256 / 0x100

 

The trouble is inside the translated key, kVK_ANSI_Z value is 6, kVK_ANSI_W value is 13.

​Any idea why my key codes are not matching ??

Link to comment
  • 2 weeks later...

Hi Anthony,

 

Sorry for the late reply.

 

I've tried to call engine.app.getKeyState(122) and engine.app.getKeyState('z') in update() and I always get '1' when z button is pressed. I've tested on Macbook Air 2013 (with US/RU keyboard and only U.S. keyboard layout set in input sources).

 

Do you have any special input sources or keyboard layout settings (System Preferences -> Keyboard -> Input Sources)?

 

EDIT #1: Oh, now I see that you have AZERTY keyboard. We need to find one to check this issue :)

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
  • 1 month later...
×
×
  • Create New...