deeredman1991

k API

Apr 3rd, 2015
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.87 KB | None | 0 0
  1. --Keys API
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print("---Dee's Keys API Loaded---")
  5.  
  6. --F Row
  7. esc = 1
  8.  
  9. f1 = 59
  10. f2 = 60
  11. f3 = 61
  12. f4 = 62
  13. f5 = 63
  14. f6 = 64
  15. f7 = 65
  16. f8 = 66
  17. f9 = 67
  18. f10 = 68
  19. f11 = 88
  20. f12 = 89
  21.  
  22. -------------------------------
  23. ------Main Keyboard Group------
  24. -------------------------------
  25.  
  26. --NumRow
  27. one = 2
  28. two = 3
  29. three = 4
  30. four = 5
  31. five = 6
  32. six = 7
  33. seven = 8
  34. eight = 9
  35. nine = 10
  36. zero = 11
  37.  
  38. I = 2 ----- 1
  39. II = 3 ---- 2
  40. III = 4 --- 3
  41. IV = 5 ---- 4
  42. V = 6 ----- 5
  43. VI = 7 ---- 6
  44. VII = 8 --- 7
  45. VIII = 9 -- 8
  46. IX = 10 --- 9
  47. X = 11 ---- 0
  48.  
  49. --Assist Keys in the NumRow
  50. minus = 12
  51. equals = 13
  52. backspace = 14
  53.  
  54. --Letters--
  55. q = 16
  56. w = 17
  57. e = 18
  58. r = 19
  59. t = 20
  60. y = 21
  61. u = 22
  62. i = 23
  63. o = 24
  64. p = 25
  65. a = 30
  66. s = 31
  67. d = 32
  68. f = 33
  69. g = 34
  70. h = 35
  71. j = 36
  72. k = 37
  73. l = 38
  74. z = 44
  75. x = 45
  76. c = 46
  77. v = 47
  78. b = 48
  79. n = 49
  80. m = 50
  81.  
  82. --Assist Keys in the Main Keyboard Group
  83. enter = 28
  84. space = 57
  85. lShift = 42
  86. rShift = 54
  87. lCtrl = 29
  88. rCtrl = 157
  89. lAlt = 56
  90. rAlt = 184
  91. lSuper = 219
  92. RSuper = 220
  93. lBrckt = 26
  94. rBrckt = 27
  95. tab = 15
  96. comma = 51
  97. period = 52
  98. grave = 41
  99. backslash = 43
  100. semiColon = 39
  101. apostrophe = 40
  102. slash = 53
  103. menu = 221
  104. capsLock = 58
  105.  
  106. -------------------------------
  107. --------Functions Group--------
  108. -------------------------------
  109.  
  110. --Main Keys in the Functions Group
  111. prntScrn = 183
  112. scollLk = 70
  113. pause = 197
  114. insert = 210
  115. home = 199
  116. pageUp = 201
  117. delete = 211
  118. pageDown = 209
  119. End = 207
  120.  
  121. --Arrow Keys
  122. up = 200
  123. down = 208
  124. left = 203
  125. right = 205
  126.  
  127. -------------------------------
  128. ------------Num Pad------------
  129. -------------------------------
  130.  
  131. numLock = 69
  132.  
  133. --Numbers
  134. numPad0 = 82
  135. numPad1 = 79
  136. numPad2 = 80
  137. numPad3 = 81
  138. numPad4 = 75
  139. numPad5 = 76
  140. numPad6 = 77
  141. numPad7 = 71
  142. numPad8 = 72
  143. numPad9 = 73
  144.  
  145. --Math Operators
  146. numPadAdd = 78
  147. numPadSub = 74
  148. numMult = 55
  149. numPadDiv = 181
  150.  
  151. numPadDeci = 83
Advertisement
Add Comment
Please, Sign In to add comment