Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. function main()
  2. trick.print("This program is meant to be run on startup only.")
  3. trick.res()
  4. end
  5. do
  6. _G.keycodes = {
  7. [2] = "1",
  8. [3] = "2",
  9. [4] = "3",
  10. [5] = "4",
  11. [6] = "5",
  12. [7] = "6",
  13. [8] = "7",
  14. [9] = "8",
  15. [10] = "9",
  16. [11] = "0",
  17. [12] = "-",
  18. [13] = "=",
  19. [15] = " ",
  20. [16] = "Q",
  21. [17] = "W",
  22. [18] = "E",
  23. [19] = "R",
  24. [20] = "T",
  25. [21] = "Y",
  26. [22] = "U",
  27. [23] = "I",
  28. [24] = "O",
  29. [25] = "P",
  30. [26] = "[",
  31. [27] = "]",
  32. [30] = "A",
  33. [31] = "S",
  34. [32] = "D",
  35. [33] = "F",
  36. [34] = "G",
  37. [35] = "H",
  38. [36] = "J",
  39. [37] = "K",
  40. [38] = "L",
  41. [39] = ";",
  42. [40] = "'",
  43. [41] = "`",
  44. [43] = "\\",
  45. [44] = "Z",
  46. [45] = "X",
  47. [46] = "C",
  48. [47] = "V",
  49. [48] = "B",
  50. [49] = "N",
  51. [50] = "M",
  52. [51] = ",",
  53. [52] = ".",
  54. [53] = "/",
  55. [54] = "",
  56. [55] = "*",
  57. [57] = " "
  58. }
  59. end
  60. function trick.convert(key)
  61. return keycodes[key]
  62. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement