- Home /
What is the Input name of > and < ?
i want to make 2 new imputs. one the > button and the other the < button. But what are the names i write under positive button thing?
You wanna pick an answer and hit the checkmark next to it so we know it's done?
Answer by MarkFinn · Sep 28, 2012 at 07:43 PM
KeyCode.Comma and KeyCode.Period
Unity doesn't care about shifts on inputs. If you do then you have to check for left shift and right shift by yourself.
Answer by john_yarko · Sep 28, 2012 at 07:49 PM
KeyCode.Greater and KeyCode.Less
I wasn't aware of those, but makes sense, some keyboards may have these key as-such(?)
maybe some keyboard layouts, don't know. i worked fine for me:)
Just to note, a quick test here using windows 7 with US international keyboard layout, $$anonymous$$eyCode.Greater and $$anonymous$$eyCode.Less do not actually work, while $$anonymous$$eyCode.Comma and Period do.
Gotta love Internationalization :-(
The Greater and Less keys didn't work for me either. Period and Coma did work.
Just like to add that on (my) german keyboard layout the greater and less characters are both on the same key ;) right next to the left shift key. So it's not really possible to provide a solution for all layouts
Your answer
![](https://koobas.hobune.stream/wayback/20220613081621im_/https://answers.unity.com/themes/thub/images/avi.jpg)