foreach(KeyCode vKey in System.Enum.GetValues(typeof(KeyCode))){ if(Input.GetKey(vKey)){ Debug.Log(vKey);
} }
I try this code to determine what happened. Anytime I press the space bar, log detects it as “O”.
But when I change KeyCode.Space to KeyCode.O, log detects its as SpaceBar after I press “O” or “Space Bar”.
When I install it on an Android phone and use the keyboard on my phone, it works.
How can I fix it on Input Manager?
(I use Unity Hub from AppImage and install Unity Editor on it. I don’t think Ubuntu version or Unity Editor 2019 version is the main problem)
We have a fix in the pipeline for keyboard mappings in play mode in Linux. Keep on eye on new 2020.2 releases.
In the meantime, you can report a bug using “Help > Report a Bug”. If you do so, please include your keyboard layout if it is not a US keyboard or US layout.