• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by sidhi · Aug 02, 2014 at 02:03 PM · inputstring

C# list of string name for Input.GetKey(string name)

I'm using Input.GetKey(string name) in C#. The problem is where can I get the complete list for the string name of keys ?

So far I manage to get the Input.GetKey's "string name" for :

"up" for up arrow key

"down" for down arrow key

"left" for left arrow key

"right" for right arrow key

"space" for spacebar key

"insert" for insert key

"delete" for delete key

"home" for home key

"end" for end key

"page up" for page up key

"page down" for page down key

What about the rest of the keys ? Where can I find the complete list of GetKey string name ?

PS : I already know the KeyCode and its variables.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image gjf · Aug 02, 2014 at 01:30 PM 0
Share

why do you need these?

it's easier to use the keycodes, such as

 if (Input.GetKey(KeyCode.UpArrow))
 {
     print("up arrow key is held down");
 }
avatar image sidhi · Aug 02, 2014 at 04:21 PM 0
Share

If using KeyCode I already know it. What I need is list of string name. For example there is a given string. And then I need to substring them based on the GetKey string name to avoid errors.

Eg :

Given string :

"He manage to end the book by page up his space in his home"

The Input.GetKey will receive the following strings :

" end , page up, up, space, home " .

That's why I need the list of string name for Input.GetKey ....

avatar image Jamora · Aug 02, 2014 at 04:26 PM 0
Share

Seems like what you really need is to make a parser that will translate a sequence of letters into a keycode. This means you can decide which names the keys will have; no more searching.

avatar image sidhi · Aug 02, 2014 at 04:29 PM 0
Share

Another example :

"down from here, there is end of the world without any escape from being delete."

the passing string to Input.GetKey will be :

"down" , "end" , "escape" , "delete"

That's why I need list of string name for Input.GetKey()

4 Replies

· Add your reply
  • Sort: 
avatar image
11
Best Answer

Answer by robertbu · Aug 02, 2014 at 05:52 PM

Based on searching, the list of string names was apparently in the reference manual at one time. I'm frustrated with the dumbing down of the manual and the reference. For example, what callbacks could be IEnumerators was included at one time, and whether a particular 'class' was in fact a struct. Anyway through a bit of trial and error, here is a bit of code with the ones I've found. I doubt it is a complete list, but maybe it contains the ones you care about:

 #pragma strict
 
 private var keys : String[] = [
 "backspace",
 "delete",
 "tab",
 "clear",
 "return",
 "pause",
 "escape",
 "space",
 "up",
 "down",
 "right",
 "left",
 "insert",
 "home",
 "end",
 "page up",
 "page down",
 "f1",
 "f2",
 "f3",
 "f4",
 "f5",
 "f6",
 "f7",
 "f8",
 "f9",
 "f10",
 "f11",
 "f12",
 "f13",
 "f14",
 "f15",
 "0",
 "1",
 "2",
 "3",
 "4",
 "5",
 "6",
 "7",
 "8",
 "9",
 "!",
 "\"",
 "#",
 "$",
 "&",
 "'",
 "(",
 ")",
 "*",
 "+",
 ",",
 "-",
 ".",
 "/",
 ":",
 ";",
 "<",
 "=",
 ">",
 "?",
 "@",
 "[",
 "\\",
 "]",
 "^",
 "_",
 "`",
 "a",
 "b",
 "c",
 "d",
 "e",
 "f",
 "g",
 "h",
 "i",
 "j",
 "k",
 "l",
 "m",
 "n",
 "o",
 "p",
 "q",
 "r",
 "s",
 "t",
 "u",
 "v",
 "w",
 "x",
 "y",
 "z",
 "numlock",
 "caps lock",
 "scroll lock",
 "right shift",
 "left shift",
 "right ctrl",
 "left ctrl",
 "right alt",
 "left alt"
 ];
 
 function Update() {
     for (var key : String in keys) {
         if (Input.GetKeyDown(key)) {
             Debug.Log(key);
         }
      } 
 }

Note that the string names for the KeyCodes/Scan Codes do not match to these names.

Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image gjf · Aug 02, 2014 at 05:59 PM 0
Share

@robertbu - are the names returned by e.keyCode.ToString() not the same as you'd use in Input.GetKeyDown("key")?

if so, that's less than helpful... thanks anyway - i've learned something today. time to go home ;)

avatar image robertbu · Aug 02, 2014 at 06:22 PM 1
Share

@gif - that is correct, the names are not the same. Actually my first assumption was that they were the same, but in testing, I found they did not work. I'm sure there is a table in the Unity software with these strings. It would be nice to have that table back in the reference manual so we don't have to guess around to find a solution. Maybe if someone has a copy of the reference manual from a year ago, they can post the complete list.

avatar image Eric5h5 · Aug 02, 2014 at 06:46 PM 2
Share

The docs regarding input button names haven't changed: http://docs.unity3d.com/Manual/ConventionalGameInput.html There never was a complete list of every string name individually; the guide at the bottom of that page tells you the conventions, so you can infer the rest. You can download old versions of Unity (which include the docs) here. The struct thing is annoying, but the docs still seem to indicate which functions can be coroutines from what I can see (OnCollisionEnter, etc.).

avatar image robertbu · Aug 02, 2014 at 07:41 PM 1
Share

@eric5h5 - thanks once again for the info. I searched for an answer for this question. All the references to solutions sent me to this page rather than the one that has the info, so I guess that the references are just mapping to a new page. Here is the the page for OnCollisionEnter() that Google takes me to. I no longer see info on this page about it being able to be a coroutine.

avatar image sidhi · Aug 02, 2014 at 08:17 PM 0
Share

Yes, that's what I'm looking for. But also, I wonder if it's a complete one...

For example, how to detect these keys : "print screen" , "windows logo" (WIN keyboard) , "option" (MAC keyboard) ?
Anyway, thanks for the answer :)

Show more comments
avatar image
1

Answer by Honorsoft · Jul 17, 2017 at 04:37 AM

-NEW BEST ANSWER-

Complete list from UNITY (including all 8 20-button joysticks):

None = Not assigned (never returned as the result of a keystroke).

Backspace = The backspace key.

Delete = The forward delete key.

Tab = The tab key.

Clear = The Clear key.

Return = Return key.

Pause = Pause on PC machines.

Escape = Escape key.

Space = Space key.

Keypad0 = Numeric keypad 0.

Keypad1 = Numeric keypad 1.

Keypad2 = Numeric keypad 2.

Keypad3 = Numeric keypad 3.

Keypad4 = Numeric keypad 4.

Keypad5 = Numeric keypad 5.

Keypad6 = Numeric keypad 6.

Keypad7 = Numeric keypad 7.

Keypad8 = Numeric keypad 8.

Keypad9 = Numeric keypad 9.

KeypadPeriod = Numeric keypad '.'.

KeypadDivide = Numeric keypad '/'.

KeypadMultiply = Numeric keypad '*'.

KeypadMinus = Numeric keypad '='.

KeypadPlus = Numeric keypad '+'.

KeypadEnter = Numeric keypad enter.

KeypadEquals = Numeric keypad '='.

UpArrow = Up arrow key.

DownArrow = Down arrow key.

RightArrow = Right arrow key.

LeftArrow = Left arrow key.

Insert = Insert key key.

Home = Home key.

End = End key.

PageUp = Page up.

PageDown = Page down.

F1 = F1 function key.

F2 = F2 function key.

F3 = F3 function key.

F4 = F4 function key.

F5 = F5 function key.

F6 = F6 function key.

F7 = F7 function key.

F8 = F8 function key.

F9 = F9 function key.

F10 = F10 function key.

F11 = F11 function key.

F12 = F12 function key.

F13 = F13 function key.

F14 = F14 function key.

F15 = F15 function key.

Alpha0 = The '0' key on the top of the alphanumeric keyboard.

Alpha1 = The '1' key on the top of the alphanumeric keyboard.

Alpha2 = The '2' key on the top of the alphanumeric keyboard.

Alpha3 = The '3' key on the top of the alphanumeric keyboard.

Alpha4 = The '4' key on the top of the alphanumeric keyboard.

Alpha5 = The '5' key on the top of the alphanumeric keyboard.

Alpha6 = The '6' key on the top of the alphanumeric keyboard.

Alpha7 = The '7' key on the top of the alphanumeric keyboard.

Alpha8 = The '8' key on the top of the alphanumeric keyboard.

Alpha9 = The '9' key on the top of the alphanumeric keyboard.

Exclaim = Exclamation mark key '!'.

DoubleQuote = Double quote key '"'.

Hash = Hash key '#'.

Dollar = Dollar sign key '$'.

Ampersand = Ampersand key '&'.

Quote = Quote key '.

LeftParen = Left Parenthesis key '('.

RightParen = Right Parenthesis key ')'.

Asterisk = Asterisk key '*'.

Plus = Plus key '+'.

Comma = Comma ',' key.

Minus = Minus '=' key.

Period = Period '.' key.

Slash = Slash '/' key.

Colon = Colon ':' key.

Semicolon = Semicolon ';' key.

Less = Less than '<' key.

Equals = Equals '=' key.

Greater = Greater than '>' key.

Question = Question mark '?' key.

At = At key '@'.

LeftBracket = Left square bracket key '['.

Backslash = Backslash key '\'.

RightBracket = Right square bracket key ']'.

Caret = Caret key '^'.

Underscore = Underscore '_' key.

BackQuote = Back quote key '`'.

A = 'a' key.

B = 'b' key.

C = 'c' key.

D = 'd' key.

E = 'e' key.

F = 'f' key.

G = 'g' key.

H = 'h' key.

I = 'i' key.

J = 'j' key.

K = 'k' key.

L = 'l' key.

M = 'm' key.

N = 'n' key.

O = 'o' key.

P = 'p' key.

Q = 'q' key.

R = 'r' key.

S = 's' key.

T = 't' key.

U = 'u' key.

V = 'v' key.

W = 'w' key.

X = 'x' key.

Y = 'y' key.

Z = 'z' key.

Numlock = Numlock key.

CapsLock = Capslock key.

ScrollLock = Scroll lock key.

RightShift = Right shift key.

LeftShift = Left shift key.

RightControl = Right Control key.

LeftControl = Left Control key.

RightAlt = Right Alt key.

LeftAlt = Left Alt key.

LeftCommand = Left Command key.

LeftApple = Left Command key.

LeftWindows = Left Windows key.

RightCommand = Right Command key.

RightApple = Right Command key.

RightWindows = Right Windows key.

AltGr = Alt Gr key.

Help = Help key.

Print = Print key.

SysReq = Sys Req key.

Break = Break key.

Menu = Menu key.

Mouse0 = First (primary) mouse button.

Mouse1 = Second (secondary) mouse button.

Mouse2 = Third mouse button.

Mouse3 = Fourth mouse button.

Mouse4 = Fifth mouse button.

Mouse5 = Sixth mouse button.

Mouse6 = Seventh mouse button.

JoystickButton0 = Button 0 on any joystick.

JoystickButton1 = Button 1 on any joystick.

JoystickButton2 = Button 2 on any joystick.

JoystickButton3 = Button 3 on any joystick.

JoystickButton4 = Button 4 on any joystick.

JoystickButton5 = Button 5 on any joystick.

JoystickButton6 = Button 6 on any joystick.

JoystickButton7 = Button 7 on any joystick.

JoystickButton8 = Button 8 on any joystick.

JoystickButton9 = Button 9 on any joystick.

JoystickButton10 = Button 10 on any joystick.

JoystickButton11 = Button 11 on any joystick.

JoystickButton12 = Button 12 on any joystick.

JoystickButton13 = Button 13 on any joystick.

JoystickButton14 = Button 14 on any joystick.

JoystickButton15 = Button 15 on any joystick.

JoystickButton16 = Button 16 on any joystick.

JoystickButton17 = Button 17 on any joystick.

JoystickButton18 = Button 18 on any joystick.

JoystickButton19 = Button 19 on any joystick.

Joystick1Button0 = Button 0 on first joystick.

Joystick1Button1 = Button 1 on first joystick.

Joystick1Button2 = Button 2 on first joystick.

Joystick1Button3 = Button 3 on first joystick.

Joystick1Button4 = Button 4 on first joystick.

Joystick1Button5 = Button 5 on first joystick.

Joystick1Button6 = Button 6 on first joystick.

Joystick1Button7 = Button 7 on first joystick.

Joystick1Button8 = Button 8 on first joystick.

Joystick1Button9 = Button 9 on first joystick.

Joystick1Button10 = Button 10 on first joystick.

Joystick1Button11 = Button 11 on first joystick.

Joystick1Button12 = Button 12 on first joystick.

Joystick1Button13 = Button 13 on first joystick.

Joystick1Button14 = Button 14 on first joystick.

Joystick1Button15 = Button 15 on first joystick.

Joystick1Button16 = Button 16 on first joystick.

Joystick1Button17 = Button 17 on first joystick.

Joystick1Button18 = Button 18 on first joystick.

Joystick1Button19 = Button 19 on first joystick.

Joystick2Button0 = Button 0 on second joystick.

Joystick2Button1 = Button 1 on second joystick.

Joystick2Button2 = Button 2 on second joystick.

Joystick2Button3 = Button 3 on second joystick.

Joystick2Button4 = Button 4 on second joystick.

Joystick2Button5 = Button 5 on second joystick.

Joystick2Button6 = Button 6 on second joystick.

Joystick2Button7 = Button 7 on second joystick.

Joystick2Button8 = Button 8 on second joystick.

Joystick2Button9 = Button 9 on second joystick.

Joystick2Button10 = Button 10 on second joystick.

Joystick2Button11 = Button 11 on second joystick.

Joystick2Button12 = Button 12 on second joystick.

Joystick2Button13 = Button 13 on second joystick.

Joystick2Button14 = Button 14 on second joystick.

Joystick2Button15 = Button 15 on second joystick.

Joystick2Button16 = Button 16 on second joystick.

Joystick2Button17 = Button 17 on second joystick.

Joystick2Button18 = Button 18 on second joystick.

Joystick2Button19 = Button 19 on second joystick.

Joystick3Button0 = Button 0 on third joystick.

Joystick3Button1 = Button 1 on third joystick.

Joystick3Button2 = Button 2 on third joystick.

Joystick3Button3 = Button 3 on third joystick.

Joystick3Button4 = Button 4 on third joystick.

Joystick3Button5 = Button 5 on third joystick.

Joystick3Button6 = Button 6 on third joystick.

Joystick3Button7 = Button 7 on third joystick.

Joystick3Button8 = Button 8 on third joystick.

Joystick3Button9 = Button 9 on third joystick.

Joystick3Button10 = Button 10 on third joystick.

Joystick3Button11 = Button 11 on third joystick.

Joystick3Button12 = Button 12 on third joystick.

Joystick3Button13 = Button 13 on third joystick.

Joystick3Button14 = Button 14 on third joystick.

Joystick3Button15 = Button 15 on third joystick.

Joystick3Button16 = Button 16 on third joystick.

Joystick3Button17 = Button 17 on third joystick.

Joystick3Button18 = Button 18 on third joystick.

Joystick3Button19 = Button 19 on third joystick.

Joystick4Button0 = Button 0 on forth joystick.

Joystick4Button1 = Button 1 on forth joystick.

Joystick4Button2 = Button 2 on forth joystick.

Joystick4Button3 = Button 3 on forth joystick.

Joystick4Button4 = Button 4 on forth joystick.

Joystick4Button5 = Button 5 on forth joystick.

Joystick4Button6 = Button 6 on forth joystick.

Joystick4Button7 = Button 7 on forth joystick.

Joystick4Button8 = Button 8 on forth joystick.

Joystick4Button9 = Button 9 on forth joystick.

Joystick4Button10 = Button 10 on forth joystick.

Joystick4Button11 = Button 11 on forth joystick.

Joystick4Button12 = Button 12 on forth joystick.

Joystick4Button13 = Button 13 on forth joystick.

Joystick4Button14 = Button 14 on forth joystick.

Joystick4Button15 = Button 15 on forth joystick.

Joystick4Button16 = Button 16 on forth joystick.

Joystick4Button17 = Button 17 on forth joystick.

Joystick4Button18 = Button 18 on forth joystick.

Joystick4Button19 = Button 19 on forth joystick.

Joystick5Button0 = Button 0 on fifth joystick.

Joystick5Button1 = Button 1 on fifth joystick.

Joystick5Button2 = Button 2 on fifth joystick.

Joystick5Button3 = Button 3 on fifth joystick.

Joystick5Button4 = Button 4 on fifth joystick.

Joystick5Button5 = Button 5 on fifth joystick.

Joystick5Button6 = Button 6 on fifth joystick.

Joystick5Button7 = Button 7 on fifth joystick.

Joystick5Button8 = Button 8 on fifth joystick.

Joystick5Button9 = Button 9 on fifth joystick.

Joystick5Button10 = Button 10 on fifth joystick.

Joystick5Button11 = Button 11 on fifth joystick.

Joystick5Button12 = Button 12 on fifth joystick.

Joystick5Button13 = Button 13 on fifth joystick.

Joystick5Button14 = Button 14 on fifth joystick.

Joystick5Button15 = Button 15 on fifth joystick.

Joystick5Button16 = Button 16 on fifth joystick.

Joystick5Button17 = Button 17 on fifth joystick.

Joystick5Button18 = Button 18 on fifth joystick.

Joystick5Button19 = Button 19 on fifth joystick.

Joystick6Button0 = Button 0 on sixth joystick.

Joystick6Button1 = Button 1 on sixth joystick.

Joystick6Button2 = Button 2 on sixth joystick.

Joystick6Button3 = Button 3 on sixth joystick.

Joystick6Button4 = Button 4 on sixth joystick.

Joystick6Button5 = Button 5 on sixth joystick.

Joystick6Button6 = Button 6 on sixth joystick.

Joystick6Button7 = Button 7 on sixth joystick.

Joystick6Button8 = Button 8 on sixth joystick.

Joystick6Button9 = Button 9 on sixth joystick.

Joystick6Button10 = Button 10 on sixth joystick.

Joystick6Button11 = Button 11 on sixth joystick.

Joystick6Button12 = Button 12 on sixth joystick.

Joystick6Button13 = Button 13 on sixth joystick.

Joystick6Button14 = Button 14 on sixth joystick.

Joystick6Button15 = Button 15 on sixth joystick.

Joystick6Button16 = Button 16 on sixth joystick.

Joystick6Button17 = Button 17 on sixth joystick.

Joystick6Button18 = Button 18 on sixth joystick.

Joystick6Button19 = Button 19 on sixth joystick.

Joystick7Button0 = Button 0 on seventh joystick.

Joystick7Button1 = Button 1 on seventh joystick.

Joystick7Button2 = Button 2 on seventh joystick.

Joystick7Button3 = Button 3 on seventh joystick.

Joystick7Button4 = Button 4 on seventh joystick.

Joystick7Button5 = Button 5 on seventh joystick.

Joystick7Button6 = Button 6 on seventh joystick.

Joystick7Button7 = Button 7 on seventh joystick.

Joystick7Button8 = Button 8 on seventh joystick.

Joystick7Button9 = Button 9 on seventh joystick.

Joystick7Button10 = Button 10 on seventh joystick.

Joystick7Button11 = Button 11 on seventh joystick.

Joystick7Button12 = Button 12 on seventh joystick.

Joystick7Button13 = Button 13 on seventh joystick.

Joystick7Button14 = Button 14 on seventh joystick.

Joystick7Button15 = Button 15 on seventh joystick.

Joystick7Button16 = Button 16 on seventh joystick.

Joystick7Button17 = Button 17 on seventh joystick.

Joystick7Button18 = Button 18 on seventh joystick.

Joystick7Button19 = Button 19 on seventh joystick.

Joystick8Button0 = Button 0 on eighth joystick.

Joystick8Button1 = Button 1 on eighth joystick.

Joystick8Button2 = Button 2 on eighth joystick.

Joystick8Button3 = Button 3 on eighth joystick.

Joystick8Button4 = Button 4 on eighth joystick.

Joystick8Button5 = Button 5 on eighth joystick.

Joystick8Button6 = Button 6 on eighth joystick.

Joystick8Button7 = Button 7 on eighth joystick.

Joystick8Button8 = Button 8 on eighth joystick.

Joystick8Button9 = Button 9 on eighth joystick.

Joystick8Button10 = Button 10 on eighth joystick.

Joystick8Button11 = Button 11 on eighth joystick.

Joystick8Button12 = Button 12 on eighth joystick.

Joystick8Button13 = Button 13 on eighth joystick.

Joystick8Button14 = Button 14 on eighth joystick.

Joystick8Button15 = Button 15 on eighth joystick.

Joystick8Button16 = Button 16 on eighth joystick.

Joystick8Button17 = Button 17 on eighth joystick.

Joystick8Button18 = Button 18 on eighth joystick.

Joystick8Button19 = Button 19 on eighth joystick.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by FIFTYTWO · Jan 09 at 01:07 PM

I've looked into binary code of UnityPlayer.dll and I guess I've found all possible string key codes. Well, or maybe almost all possible. You can check gist on github. This class presents all those codes. I checked them with Input.GetKey() and they did not throw exceptions.

Here is a complete list for all of them:

 backspace
 delete
 tab
 clear
 return
 pause
 escape
 space
 [0]
 [1]
 [2]
 [3]
 [4]
 [5]
 [6]
 [7]
 [8]
 [9]
 [.]
 [/]
 [*]
 [-]
 [+]
 equals
 enter
 up
 down
 right
 left
 insert
 home
 end
 page up
 page down
 f1
 f2
 f3
 f4
 f5
 f6
 f7
 f8
 f9
 f10
 f11
 f12
 f13
 f14
 f15
 0
 1
 2
 3
 4
 5
 6
 7
 8
 9
 -
 =
 !
 @
 #
 $
 %
 ^
 &
 *
 (
 )
 _
 +
 [
 ]
 `
 {
 }
 ~
 ;
 '
 \
 :
 "
 |
 ,
 .
 /
 <
 >
 ?
 a
 b
 c
 d
 e
 f
 g
 h
 i
 j
 k
 l
 m
 n
 o
 p
 q
 r
 s
 t
 u
 v
 w
 x
 y
 z
 numlock
 caps lock
 scroll lock
 right shift
 left shift
 right ctrl
 left ctrl
 right alt
 left alt
 right cmd
 left cmd
 right super
 left super
 alt gr
 compose
 help
 print screen
 sys req
 break
 menu
 power
 euro
 undo
 mouse 0
 mouse 1
 mouse 2
 mouse 3
 mouse 4
 mouse 5
 mouse 6
 joystick button 0
 joystick button 1
 joystick button 2
 joystick button 3
 joystick button 4
 joystick button 5
 joystick button 6
 joystick button 7
 joystick button 8
 joystick button 9
 joystick button 10
 joystick button 11
 joystick button 12
 joystick button 13
 joystick button 14
 joystick button 15
 joystick button 16
 joystick button 17
 joystick button 18
 joystick button 19
 joystick 1 button 0
 joystick 1 button 1
 joystick 1 button 2
 joystick 1 button 3
 joystick 1 button 4
 joystick 1 button 5
 joystick 1 button 6
 joystick 1 button 7
 joystick 1 button 8
 joystick 1 button 9
 joystick 1 button 10
 joystick 1 button 11
 joystick 1 button 12
 joystick 1 button 13
 joystick 1 button 14
 joystick 1 button 15
 joystick 1 button 16
 joystick 1 button 17
 joystick 1 button 18
 joystick 1 button 19
 joystick 2 button 0
 joystick 2 button 1
 joystick 2 button 2
 joystick 2 button 3
 joystick 2 button 4
 joystick 2 button 5
 joystick 2 button 6
 joystick 2 button 7
 joystick 2 button 8
 joystick 2 button 9
 joystick 2 button 10
 joystick 2 button 11
 joystick 2 button 12
 joystick 2 button 13
 joystick 2 button 14
 joystick 2 button 15
 joystick 2 button 16
 joystick 2 button 17
 joystick 2 button 18
 joystick 2 button 19
 joystick 3 button 0
 joystick 3 button 1
 joystick 3 button 2
 joystick 3 button 3
 joystick 3 button 4
 joystick 3 button 5
 joystick 3 button 6
 joystick 3 button 7
 joystick 3 button 8
 joystick 3 button 9
 joystick 3 button 10
 joystick 3 button 11
 joystick 3 button 12
 joystick 3 button 13
 joystick 3 button 14
 joystick 3 button 15
 joystick 3 button 16
 joystick 3 button 17
 joystick 3 button 18
 joystick 3 button 19
 joystick 4 button 0
 joystick 4 button 1
 joystick 4 button 2
 joystick 4 button 3
 joystick 4 button 4
 joystick 4 button 5
 joystick 4 button 6
 joystick 4 button 7
 joystick 4 button 8
 joystick 4 button 9
 joystick 4 button 10
 joystick 4 button 11
 joystick 4 button 12
 joystick 4 button 13
 joystick 4 button 14
 joystick 4 button 15
 joystick 4 button 16
 joystick 4 button 17
 joystick 4 button 18
 joystick 4 button 19
 joystick 5 button 0
 joystick 5 button 1
 joystick 5 button 2
 joystick 5 button 3
 joystick 5 button 4
 joystick 5 button 5
 joystick 5 button 6
 joystick 5 button 7
 joystick 5 button 8
 joystick 5 button 9
 joystick 5 button 10
 joystick 5 button 11
 joystick 5 button 12
 joystick 5 button 13
 joystick 5 button 14
 joystick 5 button 15
 joystick 5 button 16
 joystick 5 button 17
 joystick 5 button 18
 joystick 5 button 19
 joystick 6 button 0
 joystick 6 button 1
 joystick 6 button 2
 joystick 6 button 3
 joystick 6 button 4
 joystick 6 button 5
 joystick 6 button 6
 joystick 6 button 7
 joystick 6 button 8
 joystick 6 button 9
 joystick 6 button 10
 joystick 6 button 11
 joystick 6 button 12
 joystick 6 button 13
 joystick 6 button 14
 joystick 6 button 15
 joystick 6 button 16
 joystick 6 button 17
 joystick 6 button 18
 joystick 6 button 19
 joystick 7 button 0
 joystick 7 button 1
 joystick 7 button 2
 joystick 7 button 3
 joystick 7 button 4
 joystick 7 button 5
 joystick 7 button 6
 joystick 7 button 7
 joystick 7 button 8
 joystick 7 button 9
 joystick 7 button 10
 joystick 7 button 11
 joystick 7 button 12
 joystick 7 button 13
 joystick 7 button 14
 joystick 7 button 15
 joystick 7 button 16
 joystick 7 button 17
 joystick 7 button 18
 joystick 7 button 19
 joystick 8 button 0
 joystick 8 button 1
 joystick 8 button 2
 joystick 8 button 3
 joystick 8 button 4
 joystick 8 button 5
 joystick 8 button 6
 joystick 8 button 7
 joystick 8 button 8
 joystick 8 button 9
 joystick 8 button 10
 joystick 8 button 11
 joystick 8 button 12
 joystick 8 button 13
 joystick 8 button 14
 joystick 8 button 15
 joystick 8 button 16
 joystick 8 button 17
 joystick 8 button 18
 joystick 8 button 19
 joystick 9 button 0
 joystick 9 button 1
 joystick 9 button 2
 joystick 9 button 3
 joystick 9 button 4
 joystick 9 button 5
 joystick 9 button 6
 joystick 9 button 7
 joystick 9 button 8
 joystick 9 button 9
 joystick 9 button 10
 joystick 9 button 11
 joystick 9 button 12
 joystick 9 button 13
 joystick 9 button 14
 joystick 9 button 15
 joystick 9 button 16
 joystick 9 button 17
 joystick 9 button 18
 joystick 9 button 19
 joystick 10 button 0
 joystick 10 button 1
 joystick 10 button 2
 joystick 10 button 3
 joystick 10 button 4
 joystick 10 button 5
 joystick 10 button 6
 joystick 10 button 7
 joystick 10 button 8
 joystick 10 button 9
 joystick 10 button 10
 joystick 10 button 11
 joystick 10 button 12
 joystick 10 button 13
 joystick 10 button 14
 joystick 10 button 15
 joystick 10 button 16
 joystick 10 button 17
 joystick 10 button 18
 joystick 10 button 19
 joystick 11 button 0
 joystick 11 button 1
 joystick 11 button 2
 joystick 11 button 3
 joystick 11 button 4
 joystick 11 button 5
 joystick 11 button 6
 joystick 11 button 7
 joystick 11 button 8
 joystick 11 button 9
 joystick 11 button 10
 joystick 11 button 11
 joystick 11 button 12
 joystick 11 button 13
 joystick 11 button 14
 joystick 11 button 15
 joystick 11 button 16
 joystick 11 button 17
 joystick 11 button 18
 joystick 11 button 19
 joystick 12 button 0
 joystick 12 button 1
 joystick 12 button 2
 joystick 12 button 3
 joystick 12 button 4
 joystick 12 button 5
 joystick 12 button 6
 joystick 12 button 7
 joystick 12 button 8
 joystick 12 button 9
 joystick 12 button 10
 joystick 12 button 11
 joystick 12 button 12
 joystick 12 button 13
 joystick 12 button 14
 joystick 12 button 15
 joystick 12 button 16
 joystick 12 button 17
 joystick 12 button 18
 joystick 12 button 19
 joystick 13 button 0
 joystick 13 button 1
 joystick 13 button 2
 joystick 13 button 3
 joystick 13 button 4
 joystick 13 button 5
 joystick 13 button 6
 joystick 13 button 7
 joystick 13 button 8
 joystick 13 button 9
 joystick 13 button 10
 joystick 13 button 11
 joystick 13 button 12
 joystick 13 button 13
 joystick 13 button 14
 joystick 13 button 15
 joystick 13 button 16
 joystick 13 button 17
 joystick 13 button 18
 joystick 13 button 19
 joystick 14 button 0
 joystick 14 button 1
 joystick 14 button 2
 joystick 14 button 3
 joystick 14 button 4
 joystick 14 button 5
 joystick 14 button 6
 joystick 14 button 7
 joystick 14 button 8
 joystick 14 button 9
 joystick 14 button 10
 joystick 14 button 11
 joystick 14 button 12
 joystick 14 button 13
 joystick 14 button 14
 joystick 14 button 15
 joystick 14 button 16
 joystick 14 button 17
 joystick 14 button 18
 joystick 14 button 19
 joystick 15 button 0
 joystick 15 button 1
 joystick 15 button 2
 joystick 15 button 3
 joystick 15 button 4
 joystick 15 button 5
 joystick 15 button 6
 joystick 15 button 7
 joystick 15 button 8
 joystick 15 button 9
 joystick 15 button 10
 joystick 15 button 11
 joystick 15 button 12
 joystick 15 button 13
 joystick 15 button 14
 joystick 15 button 15
 joystick 15 button 16
 joystick 15 button 17
 joystick 15 button 18
 joystick 15 button 19
 joystick 16 button 0
 joystick 16 button 1
 joystick 16 button 2
 joystick 16 button 3
 joystick 16 button 4
 joystick 16 button 5
 joystick 16 button 6
 joystick 16 button 7
 joystick 16 button 8
 joystick 16 button 9
 joystick 16 button 10
 joystick 16 button 11
 joystick 16 button 12
 joystick 16 button 13
 joystick 16 button 14
 joystick 16 button 15
 joystick 16 button 16
 joystick 16 button 17
 joystick 16 button 18
 joystick 16 button 19

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by smallbit · Aug 02, 2014 at 02:05 PM

Here http://docs.unity3d.com/ScriptReference/KeyCode.html

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sidhi · Aug 02, 2014 at 04:16 PM 0
Share

I already know that. What I need is list of String name from Input.GetKey. If using KeyCode and its variables I already know it. Looking forward for the List of string name from Input.GetKey ...

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Redirecting input with event.current.character? 1 Answer

Android Keyboard .text String returning empty? 1 Answer

Checking whether string is a valid Input.Key 1 Answer

Compliler Error... Unexpected Char ''' 1 Answer

Retriving double index from input string? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges