Hi everyone,
It seems like key codes don’t work properly on Italian keyboards.
I use Windows on an American MacBook Pro. When I build to OSX and send to my Italian colleague, some keys won’t work on his MBP. For example, the line:
Input.GetKeyDown(KeyCode.W)
… pressing ‘w’ doesn’t actually trigger it. Actually, pressing ‘z’ triggers that line! The key codes seem to be mixed up.
Other letter keys work fine, but not all of them. SHIFT and CONTROL work fine, but not the numbers, comma, period, etc.
The same exact build works fine on my American MBP, and also on a German MBP. Didn’t seem to help when we changed the Italian MBP keyboard bindings country in System Preferences.
Bottom line is, it seems like Unity fails to correctly “translate” key codes to an Italian keyboard.
As far as I can tell, others have faced this issue for years (http://forum.unity3d.com/threads/14348-leopard-amp-keyboard), but doesn’t seem like this issue has ever been solved…? Am I missing something? I’m pretty shocked, since ‘W’ in particular seems like a pretty major key given standard WASD controls.
Any tips on how to build a Unity program that works on both Mac and PC, on any arbitrary country keyboard?
Someone else suggested using an external DLL, but that sounds like a nightmare (also getting it to work multi-platform).
- Doug -