Hi,
currently I’m trying to detect User-Input. I want to print a string when the user presses the Plus-Key on the Keyboard and I’ve written a little Javascript function, but it doesn’t work as expected.
function Update () {
if(Input.GetKey(KeyCode.Plus))
print("PLUS (normal)");
if(Input.GetKey(KeyCode.KeypadPlus))
print("PLUS (Keypad)");
}
When I run it, “PLUS (normal)” gets never printed, when I hit the Plus-Key on the Keyboard.
The Plus-Key on the Keypad works as expected. When I press it, “PLUS (Keypad)” gets printed to the Console.
But I need access to the Plus Key on the normal Keyboard because most Laptops don’t have a Keypad.
Does somebody of you know, how to fix that?
Thank you from Germany.