Question about Input.GetKey
If i use Input.GetKey() function, how does unity know the difference between using one of the number keys and using the number keypad? would it still work this way if the num lock is toggled?
Answer by Raresh · Jan 13, 2016 at 09:51 PM
http://docs.unity3d.com/ScriptReference/KeyCode.html
Unity has a built-in class that handles key codes. And I think that it needs numlock to work, not sure. But it isn't too hard to test it.
It has different values for each physical key. $$anonymous$$eyCode.Alpha0
vs. $$anonymous$$eyCode.$$anonymous$$eyPad0
.
There are versions of Input functions that let you use just "0"
. Use the ones that give you $$anonymous$$eyCodes ins$$anonymous$$d.
wanna post that as an answer so i can close this?
Your answer
Follow this Question
Related Questions
GetKeyUp fires on too many frames 3 Answers
Missing Reference Exception 1 Answer
Check if a boolean is true by use of a string 2 Answers
Remove connection between lists or arrays 3 Answers
Climbing wall Script? 2 Answers