Input.cs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. namespace BepInEx.IL2CPP.UnityEngine
  2. {
  3. public enum KeyCode
  4. {
  5. None,
  6. Backspace = 8,
  7. Delete = 127,
  8. Tab = 9,
  9. Clear = 12,
  10. Return,
  11. Pause = 19,
  12. Escape = 27,
  13. Space = 32,
  14. Keypad0 = 256,
  15. Keypad1,
  16. Keypad2,
  17. Keypad3,
  18. Keypad4,
  19. Keypad5,
  20. Keypad6,
  21. Keypad7,
  22. Keypad8,
  23. Keypad9,
  24. KeypadPeriod,
  25. KeypadDivide,
  26. KeypadMultiply,
  27. KeypadMinus,
  28. KeypadPlus,
  29. KeypadEnter,
  30. KeypadEquals,
  31. UpArrow,
  32. DownArrow,
  33. RightArrow,
  34. LeftArrow,
  35. Insert,
  36. Home,
  37. End,
  38. PageUp,
  39. PageDown,
  40. F1,
  41. F2,
  42. F3,
  43. F4,
  44. F5,
  45. F6,
  46. F7,
  47. F8,
  48. F9,
  49. F10,
  50. F11,
  51. F12,
  52. F13,
  53. F14,
  54. F15,
  55. Alpha0 = 48,
  56. Alpha1,
  57. Alpha2,
  58. Alpha3,
  59. Alpha4,
  60. Alpha5,
  61. Alpha6,
  62. Alpha7,
  63. Alpha8,
  64. Alpha9,
  65. Exclaim = 33,
  66. DoubleQuote,
  67. Hash,
  68. Dollar,
  69. Percent,
  70. Ampersand,
  71. Quote,
  72. LeftParen,
  73. RightParen,
  74. Asterisk,
  75. Plus,
  76. Comma,
  77. Minus,
  78. Period,
  79. Slash,
  80. Colon = 58,
  81. Semicolon,
  82. Less,
  83. Equals,
  84. Greater,
  85. Question,
  86. At,
  87. LeftBracket = 91,
  88. Backslash,
  89. RightBracket,
  90. Caret,
  91. Underscore,
  92. BackQuote,
  93. A,
  94. B,
  95. C,
  96. D,
  97. E,
  98. F,
  99. G,
  100. H,
  101. I,
  102. J,
  103. K,
  104. L,
  105. M,
  106. N,
  107. O,
  108. P,
  109. Q,
  110. R,
  111. S,
  112. T,
  113. U,
  114. V,
  115. W,
  116. X,
  117. Y,
  118. Z,
  119. LeftCurlyBracket,
  120. Pipe,
  121. RightCurlyBracket,
  122. Tilde,
  123. Numlock = 300,
  124. CapsLock,
  125. ScrollLock,
  126. RightShift,
  127. LeftShift,
  128. RightControl,
  129. LeftControl,
  130. RightAlt,
  131. LeftAlt,
  132. LeftCommand = 310,
  133. LeftApple = 310,
  134. LeftWindows,
  135. RightCommand = 309,
  136. RightApple = 309,
  137. RightWindows = 312,
  138. AltGr,
  139. Help = 315,
  140. Print,
  141. SysReq,
  142. Break,
  143. Menu,
  144. Mouse0 = 323,
  145. Mouse1,
  146. Mouse2,
  147. Mouse3,
  148. Mouse4,
  149. Mouse5,
  150. Mouse6,
  151. JoystickButton0,
  152. JoystickButton1,
  153. JoystickButton2,
  154. JoystickButton3,
  155. JoystickButton4,
  156. JoystickButton5,
  157. JoystickButton6,
  158. JoystickButton7,
  159. JoystickButton8,
  160. JoystickButton9,
  161. JoystickButton10,
  162. JoystickButton11,
  163. JoystickButton12,
  164. JoystickButton13,
  165. JoystickButton14,
  166. JoystickButton15,
  167. JoystickButton16,
  168. JoystickButton17,
  169. JoystickButton18,
  170. JoystickButton19,
  171. Joystick1Button0,
  172. Joystick1Button1,
  173. Joystick1Button2,
  174. Joystick1Button3,
  175. Joystick1Button4,
  176. Joystick1Button5,
  177. Joystick1Button6,
  178. Joystick1Button7,
  179. Joystick1Button8,
  180. Joystick1Button9,
  181. Joystick1Button10,
  182. Joystick1Button11,
  183. Joystick1Button12,
  184. Joystick1Button13,
  185. Joystick1Button14,
  186. Joystick1Button15,
  187. Joystick1Button16,
  188. Joystick1Button17,
  189. Joystick1Button18,
  190. Joystick1Button19,
  191. Joystick2Button0,
  192. Joystick2Button1,
  193. Joystick2Button2,
  194. Joystick2Button3,
  195. Joystick2Button4,
  196. Joystick2Button5,
  197. Joystick2Button6,
  198. Joystick2Button7,
  199. Joystick2Button8,
  200. Joystick2Button9,
  201. Joystick2Button10,
  202. Joystick2Button11,
  203. Joystick2Button12,
  204. Joystick2Button13,
  205. Joystick2Button14,
  206. Joystick2Button15,
  207. Joystick2Button16,
  208. Joystick2Button17,
  209. Joystick2Button18,
  210. Joystick2Button19,
  211. Joystick3Button0,
  212. Joystick3Button1,
  213. Joystick3Button2,
  214. Joystick3Button3,
  215. Joystick3Button4,
  216. Joystick3Button5,
  217. Joystick3Button6,
  218. Joystick3Button7,
  219. Joystick3Button8,
  220. Joystick3Button9,
  221. Joystick3Button10,
  222. Joystick3Button11,
  223. Joystick3Button12,
  224. Joystick3Button13,
  225. Joystick3Button14,
  226. Joystick3Button15,
  227. Joystick3Button16,
  228. Joystick3Button17,
  229. Joystick3Button18,
  230. Joystick3Button19,
  231. Joystick4Button0,
  232. Joystick4Button1,
  233. Joystick4Button2,
  234. Joystick4Button3,
  235. Joystick4Button4,
  236. Joystick4Button5,
  237. Joystick4Button6,
  238. Joystick4Button7,
  239. Joystick4Button8,
  240. Joystick4Button9,
  241. Joystick4Button10,
  242. Joystick4Button11,
  243. Joystick4Button12,
  244. Joystick4Button13,
  245. Joystick4Button14,
  246. Joystick4Button15,
  247. Joystick4Button16,
  248. Joystick4Button17,
  249. Joystick4Button18,
  250. Joystick4Button19,
  251. Joystick5Button0,
  252. Joystick5Button1,
  253. Joystick5Button2,
  254. Joystick5Button3,
  255. Joystick5Button4,
  256. Joystick5Button5,
  257. Joystick5Button6,
  258. Joystick5Button7,
  259. Joystick5Button8,
  260. Joystick5Button9,
  261. Joystick5Button10,
  262. Joystick5Button11,
  263. Joystick5Button12,
  264. Joystick5Button13,
  265. Joystick5Button14,
  266. Joystick5Button15,
  267. Joystick5Button16,
  268. Joystick5Button17,
  269. Joystick5Button18,
  270. Joystick5Button19,
  271. Joystick6Button0,
  272. Joystick6Button1,
  273. Joystick6Button2,
  274. Joystick6Button3,
  275. Joystick6Button4,
  276. Joystick6Button5,
  277. Joystick6Button6,
  278. Joystick6Button7,
  279. Joystick6Button8,
  280. Joystick6Button9,
  281. Joystick6Button10,
  282. Joystick6Button11,
  283. Joystick6Button12,
  284. Joystick6Button13,
  285. Joystick6Button14,
  286. Joystick6Button15,
  287. Joystick6Button16,
  288. Joystick6Button17,
  289. Joystick6Button18,
  290. Joystick6Button19,
  291. Joystick7Button0,
  292. Joystick7Button1,
  293. Joystick7Button2,
  294. Joystick7Button3,
  295. Joystick7Button4,
  296. Joystick7Button5,
  297. Joystick7Button6,
  298. Joystick7Button7,
  299. Joystick7Button8,
  300. Joystick7Button9,
  301. Joystick7Button10,
  302. Joystick7Button11,
  303. Joystick7Button12,
  304. Joystick7Button13,
  305. Joystick7Button14,
  306. Joystick7Button15,
  307. Joystick7Button16,
  308. Joystick7Button17,
  309. Joystick7Button18,
  310. Joystick7Button19,
  311. Joystick8Button0,
  312. Joystick8Button1,
  313. Joystick8Button2,
  314. Joystick8Button3,
  315. Joystick8Button4,
  316. Joystick8Button5,
  317. Joystick8Button6,
  318. Joystick8Button7,
  319. Joystick8Button8,
  320. Joystick8Button9,
  321. Joystick8Button10,
  322. Joystick8Button11,
  323. Joystick8Button12,
  324. Joystick8Button13,
  325. Joystick8Button14,
  326. Joystick8Button15,
  327. Joystick8Button16,
  328. Joystick8Button17,
  329. Joystick8Button18,
  330. Joystick8Button19
  331. }
  332. public static class Input
  333. {
  334. private delegate bool GetKeyIntDelegate(KeyCode key);
  335. private static GetKeyIntDelegate GetKeyInt_Value
  336. = UnhollowerBaseLib.IL2CPP.ResolveICall<GetKeyIntDelegate>("UnityEngine.Input::GetKeyInt(UnityEngine.KeyCode)");
  337. public static bool GetKeyInt(KeyCode key) => GetKeyInt_Value(key);
  338. }
  339. }