March 01, 2021, 10:43:06 PM

Author Topic: [bb] Key constants by EricZann [ 1+ years ago ]  (Read 429 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] Key constants by EricZann [ 1+ years ago ]
« on: June 29, 2017, 12:28:41 AM »
Title : Key constants
Author : EricZann
Posted : 1+ years ago

Description : Remembering that 'left-arrow' is code 203 is a real pain -- remembering KEY_LEFT is much easier. I created a 'keymap.bb' file which declares constants for all these values, and I 'Include' this file in all my projects.

Code :
Code: BlitzBasic
  1. Const KEY_ESCAPE=1
  2. Const KEY_1=2
  3. Const KEY_2=3
  4. Const KEY_3=4
  5. Const KEY_4=5
  6. Const KEY_5=6
  7. Const KEY_6=7
  8. Const KEY_7=8
  9. Const KEY_8=9
  10. Const KEY_9=10
  11. Const KEY_0=11
  12. Const KEY_MINUS=12  ;On Main Keyboard
  13. Const KEY_EQUALS=13
  14. Const KEY_BACKSPACE=14 ; Backspace key
  15. Const KEY_TAB=15
  16. Const KEY_Q=16
  17. Const KEY_W=17
  18. Const KEY_E=18
  19. Const KEY_R=19
  20. Const KEY_T=20
  21. Const KEY_Y=21
  22. Const KEY_U=22
  23. Const KEY_I=23
  24. Const KEY_O=24
  25. Const KEY_P=25
  26. Const KEY_LEFT_BRACKET=26
  27. Const KEY_RIGHT_BRACKET=27
  28. Const KEY_RETURN=28 ;Return/Enter on Main Keyboard
  29. Const KEY_LEFT_CONTROL=29
  30. Const KEY_A=30
  31. Const KEY_S=31
  32. Const KEY_D=32
  33. Const KEY_F=33
  34. Const KEY_G=34
  35. Const KEY_H=35
  36. Const KEY_J=36
  37. Const KEY_K=37
  38. Const KEY_L=38
  39. Const KEY_SEMI_COLON=39
  40. Const KEY_APOSTROPHE=40
  41. Const KEY_GRAVE=41
  42. Const KEY_LEFT_SHIFT=42
  43. Const KEY_BACKSLASH=43
  44. Const KEY_Z=44
  45. Const KEY_X=45
  46. Const KEY_C=46
  47. Const KEY_V=47
  48. Const KEY_B=48
  49. Const KEY_N=49
  50. Const KEY_M=50
  51. Const KEY_COMMA=51
  52. Const KEY_PERIOD=52     ; On Main keyboard
  53. Const KEY_SLASH=53  ; On Main Keyboard
  54. Const KEY_RIGHT_SHIFT=54
  55. Const KEY_NUM_MULTIPLY=55
  56. Const KEY_LEFT_ALT=56
  57. Const KEY_SPACE=57
  58. Const KEY_CAPITAL=58
  59. Const KEY_F1=59
  60. Const KEY_F2=60
  61. Const KEY_F3=61
  62. Const KEY_F4=62
  63. Const KEY_F5=63
  64. Const KEY_F6=64
  65. Const KEY_F7=65
  66. Const KEY_F8=66
  67. Const KEY_F9=67
  68. Const KEY_F10=68
  69. Const KEY_NUMlOCK=69
  70. Const KEY_SCROLL_LOCK=70
  71. Const KEY_NUM_7=71
  72. Const KEY_NUM_8=72
  73. Const KEY_NUM_9=73
  74. Const KEY_NUM_SUBTRACT=74
  75. Const KEY_NUM_4=75
  76. Const KEY_NUM_5=76
  77. Const KEY_NUM_6=77
  78. Const KEY_NUM_ADD=78
  79. Const KEY_NUM_1=79
  80. Const KEY_NUM_2=80
  81. Const KEY_NUM_3=81
  82. Const KEY_NUM_0=82
  83. Const KEY_NUM_DECIMAL=83
  84. Const KEY_OEM_102=86  ; On UK/Germany Keyboards
  85. Const KEY_F11=87
  86. Const KEY_F12=88
  87. Const KEY_F13=100 ; (NEC PC98)
  88. Const KEY_F14=101 ; (NEC PC98)
  89. Const KEY_F15=102 ; (NEC PC98)
  90. Const KEY_KANA=112 ; Japanese Keyboard
  91. Const KEY_ABNT_C1=115 ; /? on Portugese (Brazilian) keyboards
  92. Const KEY_CONVERT=121 ; Japanese Keyboard
  93. Const KEY_NOCONVERT=123 ; Japanese Keyboard
  94. Const KEY_YEN=125  ; Japanese Keyboard
  95. Const KEY_ABNT_C2=126 ; Numpad . on Portugese (Brazilian) keyboards
  96. Const KEY_NEC_EQUALS=141 ; on numeric keypad (NEC PC98)
  97. Const KEY_PREVTRACK=144 ; Previous Track (DIK_CIRCUMFLEX on Japanese keyboard)
  98. Const KEY_NEC_AT=145 ; (NEC PC98)
  99. Const KEY_NEC_COLON=146 ; (NEC PC98)
  100. Const KEY_NEC_UNDERLINE=147 ; (NEC PC98)
  101. Const KEY_KANJI=148 ; Japanese Keyboard
  102. Const KEY_NEC_STOP=149 ; (NEC PC98)
  103. Const KEY_AX=150 ; Japan AX
  104. Const KEY_UNLABELED=151 ; (J3100)
  105. Const KEY_NEXT_TRACK=153 ; Next Track
  106. Const KEY_NUM_ENTER=156
  107. Const KEY_RIGHT_CONTROL=157
  108. Const KEY_MUTE=160
  109. Const KEY_CALCULATOR=161
  110. Const KEY_PLAY_PAUSE=162
  111. Const KEY_MEDIA_STOP=164
  112. Const KEY_VOLUME_DOWN=174
  113. Const KEY_VOLUME_UP=176
  114. Const KEY_WEB_HOME=178
  115. Const KEY_NEC_NUM_COMMA=179 ; On Numeric Keypad (NEX PC98)
  116. Const KEY_NUM_DIVIDE=181
  117. Const KEY_SYSREQ=183
  118. Const KEY_RIGHT_ALT=184
  119. Const KEY_PAUSE=197
  120. Const KEY_HOME=199
  121. Const KEY_UP=200
  122. Const KEY_PAGE_UP=201
  123. Const KEY_LEFT=203
  124. Const KEY_RIGHT=205
  125. Const KEY_END=207
  126. Const KEY_DOWN=208
  127. Const KEY_NEXT=209
  128. Const KEY_INSERT=210
  129. Const KEY_DELETE=211
  130. Const KEY_LEFT_WINDOWS=219
  131. Const KEY_RIGHT_WINDOWS=220
  132. Const KEY_APPS=221
  133. Const KEY_POWER=222
  134. Const KEY_SLEEP=223
  135. Const KEY_WAKE=227
  136. Const KEY_WEB_SEARCH=229
  137. Const KEY_WEB_FAVORITES=230
  138. Const KEY_WEB_REFRESH=231
  139. Const KEY_WEB_STOP=232
  140. Const KEY_WEB_FORWARD=233
  141. Const KEY_WEB_BACK=234
  142. Const KEY_MY_COMPUTER=235
  143. Const KEY_MAIL =236
  144. Const KEY_MEDIA_SELECT=237


Comments : none...

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal