MazK

Unity Engine Keycode Integer relation.

Mar 28th, 2015
1,764
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. namespace UnityEngine
  2. {
  3.     public enum KeyCode
  4.     {
  5.         None = 0,
  6.         Backspace = 8,
  7.         Tab = 9,
  8.         Clear = 12,
  9.         Return = 13,
  10.         Pause = 19,
  11.         Escape = 27,
  12.         Space = 32,
  13.         Exclaim = 33,
  14.         DoubleQuote = 34,
  15.         Hash = 35,
  16.         Dollar = 36,
  17.         Ampersand = 38,
  18.         Quote = 39,
  19.         LeftParen = 40,
  20.         RightParen = 41,
  21.         Asterisk = 42,
  22.         Plus = 43,
  23.         Comma = 44,
  24.         Minus = 45,
  25.         Period = 46,
  26.         Slash = 47,
  27.         Alpha0 = 48,
  28.         Alpha1 = 49,
  29.         Alpha2 = 50,
  30.         Alpha3 = 51,
  31.         Alpha4 = 52,
  32.         Alpha5 = 53,
  33.         Alpha6 = 54,
  34.         Alpha7 = 55,
  35.         Alpha8 = 56,
  36.         Alpha9 = 57,
  37.         Colon = 58,
  38.         Semicolon = 59,
  39.         Less = 60,
  40.         Equals = 61,
  41.         Greater = 62,
  42.         Question = 63,
  43.         At = 64,
  44.         LeftBracket = 91,
  45.         Backslash = 92,
  46.         RightBracket = 93,
  47.         Caret = 94,
  48.         Underscore = 95,
  49.         BackQuote = 96,
  50.         A = 97,
  51.         B = 98,
  52.         C = 99,
  53.         D = 100,
  54.         E = 101,
  55.         F = 102,
  56.         G = 103,
  57.         H = 104,
  58.         I = 105,
  59.         J = 106,
  60.         K = 107,
  61.         L = 108,
  62.         M = 109,
  63.         N = 110,
  64.         O = 111,
  65.         P = 112,
  66.         Q = 113,
  67.         R = 114,
  68.         S = 115,
  69.         T = 116,
  70.         U = 117,
  71.         V = 118,
  72.         W = 119,
  73.         X = 120,
  74.         Y = 121,
  75.         Z = 122,
  76.         Delete = 127,
  77.         Keypad0 = 256,
  78.         Keypad1 = 257,
  79.         Keypad2 = 258,
  80.         Keypad3 = 259,
  81.         Keypad4 = 260,
  82.         Keypad5 = 261,
  83.         Keypad6 = 262,
  84.         Keypad7 = 263,
  85.         Keypad8 = 264,
  86.         Keypad9 = 265,
  87.         KeypadPeriod = 266,
  88.         KeypadDivide = 267,
  89.         KeypadMultiply = 268,
  90.         KeypadMinus = 269,
  91.         KeypadPlus = 270,
  92.         KeypadEnter = 271,
  93.         KeypadEquals = 272,
  94.         UpArrow = 273,
  95.         DownArrow = 274,
  96.         RightArrow = 275,
  97.         LeftArrow = 276,
  98.         Insert = 277,
  99.         Home = 278,
  100.         End = 279,
  101.         PageUp = 280,
  102.         PageDown = 281,
  103.         F1 = 282,
  104.         F2 = 283,
  105.         F3 = 284,
  106.         F4 = 285,
  107.         F5 = 286,
  108.         F6 = 287,
  109.         F7 = 288,
  110.         F8 = 289,
  111.         F9 = 290,
  112.         F10 = 291,
  113.         F11 = 292,
  114.         F12 = 293,
  115.         F13 = 294,
  116.         F14 = 295,
  117.         F15 = 296,
  118.         Numlock = 300,
  119.         CapsLock = 301,
  120.         ScrollLock = 302,
  121.         RightShift = 303,
  122.         LeftShift = 304,
  123.         RightControl = 305,
  124.         LeftControl = 306,
  125.         RightAlt = 307,
  126.         LeftAlt = 308,
  127.         RightApple = 309,
  128.         RightCommand = 309,
  129.         LeftApple = 310,
  130.         LeftCommand = 310,
  131.         LeftWindows = 311,
  132.         RightWindows = 312,
  133.         AltGr = 313,
  134.         Help = 315,
  135.         Print = 316,
  136.         SysReq = 317,
  137.         Break = 318,
  138.         Menu = 319,
  139.         Mouse0 = 323,
  140.         Mouse1 = 324,
  141.         Mouse2 = 325,
  142.         Mouse3 = 326,
  143.         Mouse4 = 327,
  144.         Mouse5 = 328,
  145.         Mouse6 = 329,
  146.         JoystickButton0 = 330,
  147.         JoystickButton1 = 331,
  148.         JoystickButton2 = 332,
  149.         JoystickButton3 = 333,
  150.         JoystickButton4 = 334,
  151.         JoystickButton5 = 335,
  152.         JoystickButton6 = 336,
  153.         JoystickButton7 = 337,
  154.         JoystickButton8 = 338,
  155.         JoystickButton9 = 339,
  156.         JoystickButton10 = 340,
  157.         JoystickButton11 = 341,
  158.         JoystickButton12 = 342,
  159.         JoystickButton13 = 343,
  160.         JoystickButton14 = 344,
  161.         JoystickButton15 = 345,
  162.         JoystickButton16 = 346,
  163.         JoystickButton17 = 347,
  164.         JoystickButton18 = 348,
  165.         JoystickButton19 = 349,
  166.         Joystick1Button0 = 350,
  167.         Joystick1Button1 = 351,
  168.         Joystick1Button2 = 352,
  169.         Joystick1Button3 = 353,
  170.         Joystick1Button4 = 354,
  171.         Joystick1Button5 = 355,
  172.         Joystick1Button6 = 356,
  173.         Joystick1Button7 = 357,
  174.         Joystick1Button8 = 358,
  175.         Joystick1Button9 = 359,
  176.         Joystick1Button10 = 360,
  177.         Joystick1Button11 = 361,
  178.         Joystick1Button12 = 362,
  179.         Joystick1Button13 = 363,
  180.         Joystick1Button14 = 364,
  181.         Joystick1Button15 = 365,
  182.         Joystick1Button16 = 366,
  183.         Joystick1Button17 = 367,
  184.         Joystick1Button18 = 368,
  185.         Joystick1Button19 = 369,
  186.         Joystick2Button0 = 370,
  187.         Joystick2Button1 = 371,
  188.         Joystick2Button2 = 372,
  189.         Joystick2Button3 = 373,
  190.         Joystick2Button4 = 374,
  191.         Joystick2Button5 = 375,
  192.         Joystick2Button6 = 376,
  193.         Joystick2Button7 = 377,
  194.         Joystick2Button8 = 378,
  195.         Joystick2Button9 = 379,
  196.         Joystick2Button10 = 380,
  197.         Joystick2Button11 = 381,
  198.         Joystick2Button12 = 382,
  199.         Joystick2Button13 = 383,
  200.         Joystick2Button14 = 384,
  201.         Joystick2Button15 = 385,
  202.         Joystick2Button16 = 386,
  203.         Joystick2Button17 = 387,
  204.         Joystick2Button18 = 388,
  205.         Joystick2Button19 = 389,
  206.         Joystick3Button0 = 390,
  207.         Joystick3Button1 = 391,
  208.         Joystick3Button2 = 392,
  209.         Joystick3Button3 = 393,
  210.         Joystick3Button4 = 394,
  211.         Joystick3Button5 = 395,
  212.         Joystick3Button6 = 396,
  213.         Joystick3Button7 = 397,
  214.         Joystick3Button8 = 398,
  215.         Joystick3Button9 = 399,
  216.         Joystick3Button10 = 400,
  217.         Joystick3Button11 = 401,
  218.         Joystick3Button12 = 402,
  219.         Joystick3Button13 = 403,
  220.         Joystick3Button14 = 404,
  221.         Joystick3Button15 = 405,
  222.         Joystick3Button16 = 406,
  223.         Joystick3Button17 = 407,
  224.         Joystick3Button18 = 408,
  225.         Joystick3Button19 = 409,
  226.         Joystick4Button0 = 410,
  227.         Joystick4Button1 = 411,
  228.         Joystick4Button2 = 412,
  229.         Joystick4Button3 = 413,
  230.         Joystick4Button4 = 414,
  231.         Joystick4Button5 = 415,
  232.         Joystick4Button6 = 416,
  233.         Joystick4Button7 = 417,
  234.         Joystick4Button8 = 418,
  235.         Joystick4Button9 = 419,
  236.         Joystick4Button10 = 420,
  237.         Joystick4Button11 = 421,
  238.         Joystick4Button12 = 422,
  239.         Joystick4Button13 = 423,
  240.         Joystick4Button14 = 424,
  241.         Joystick4Button15 = 425,
  242.         Joystick4Button16 = 426,
  243.         Joystick4Button17 = 427,
  244.         Joystick4Button18 = 428,
  245.         Joystick4Button19 = 429,
  246.     }
  247. }
RAW Paste Data