anthony.liot Posted June 16, 2014 Share Posted June 16, 2014 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
silent Posted June 26, 2014 Share Posted June 26, 2014 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
anthony.liot Posted June 26, 2014 Author Share Posted June 26, 2014 If you doesn't find, I can send one ;) Link to comment
binstream Posted June 27, 2014 Share Posted June 27, 2014 Anthony, we are looking to buy one for QA lab - will be able to fix the issue after that. Link to comment
silent Posted August 18, 2014 Share Posted August 18, 2014 Hi, Issue is confirmed and added to our internal bug tracker. Thank you! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts