|
Is there any way to determine what key was pressed? Basically, what I want to do is this...
where keypress is the key that was pressed. I am only interested in alpha numeric keys, so I know I can do this by mapping the A key to "A" in the input preferences, etc... and a total of 36 if checks for all possible alpha numeric keys, but it seems there should be an easier way to do this. So far I haven't come up with anything :( Any help would be appreciated. Thanks, -Larry
(comments are locked)
|
|
Use Input.inputString, and check that the chars are >= 'a' and <= 'z', and >= '0' and <= '9'. Perfect. Exactly what I was looking for. Don't know how I missed that. Believe it or not, I actually went through the reference before posting this question :) Thanks, -Larry
May 16 '10 at 11:29 PM
Larry Dietz
(comments are locked)
|
