daily pastebin goal
22%
SHARE
TWEET

keycodes

SiriusHours Sep 25th, 2016 (edited) 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Virtual KeyCodes
  3.  *
  4.  * This file shows a complete list of all the virtual keys VK_ aliases and their hex value.
  5.  * You can use either the alias, the hex value or the decimal value for ReShade key bindings.
  6.  */
  7.  
  8.   /*-----------------------.
  9.   | :: Reference layout :: |
  10.   '------------------------/
  11.  
  12. Keys should be set to a Windows Virtual Keycode in either decimal, hexadecimal or its VK_ alias.
  13. Below is US ANSI keyboard reference for the keycodes in decimal:
  14.  
  15. US ANSI keyboard (104 keys) keycodes (note that your countrys keyboard layout maybe slightly different) :
  16. .---.  .---.---.---.---. .---.---.---.---. .---.---.---.---.  .---.---.---.
  17. | 27|  |112|113|114|115| |116|117|118|119| |120|121|122|123|  | 44|145| 19|
  18. `---'  `---'---'---'---' `---'---'---'---' `---'---'---'---'  `---'---'---'
  19.  
  20. .---.---.---.---.---.---.---.---.---.---.---.---.---.------.  .---.---.---.  .---.---.---.---.
  21. |192| 49| 50| 51| 52| 53| 54| 55| 56| 57| 48|189|187|   8  |  | 45| 36| 33|  |144|111|106|109|
  22. :---'---'---'---'---'---'---'---'---'---'---'---'---'------:  :---:---:---:  :---:---:---:---:
  23. |  9 | 81| 87| 69| 82| 84| 89| 85| 73| 79| 80|219|221| 220 |  | 46| 35| 34|  |103|104|105|   |
  24. :----'---'---'---'---'---'---'---'---'---'---'---'---'-----|  `---'---'---'  :---:---:---|107|
  25. |  20 | 65| 83| 68| 70| 71| 72| 74| 75| 76|186|222|   13   |                 |100|101|102|   |
  26. :-----'---'---'---'---'---'---'---'---'---'---'---'--------'      .---.      :---:---:---:---:
  27. |   16  | 90| 88| 67| 86| 66| 78| 77|188|190|191|    16    |      | 38|      | 97| 98| 99|   |
  28. :-------'---'---'---'---'---'---'---'---'---'---'----------'  .---:---|---.  :---'---:---| 13|
  29. | 17 | 91 | 18 |           32          | 18 | 92 | 93 | 17 |  | 37| 40| 39|  |   96  |110|   |
  30. `----'----'----'-----------------------'----'----'----'----'  `---'---'---'  `-------'---'--*/
  31.  
  32. #define VK_LBUTTON        0x01 // Left mouse button
  33. #define VK_RBUTTON        0x02 // Right mouse button
  34. #define VK_CANCEL         0x03
  35. #define VK_MBUTTON        0x04 // Middle mouse button
  36. #define VK_XBUTTON1       0x05 // Mouse4 thumb button (back)
  37. #define VK_XBUTTON2       0x06 // Mouse5 thumb button (forward)
  38.  
  39. /*
  40.  * 0x07 : unassigned
  41.  */
  42.  
  43. #define VK_BACK           0x08
  44. #define VK_TAB            0x09
  45.  
  46. /*
  47.  * 0x0A - 0x0B : reserved
  48.  */
  49.  
  50. #define VK_CLEAR          0x0C
  51. #define VK_RETURN         0x0D
  52.  
  53. #define VK_SHIFT          0x10
  54. #define VK_CONTROL        0x11
  55. #define VK_MENU           0x12
  56. #define VK_PAUSE          0x13
  57. #define VK_CAPITAL        0x14
  58.  
  59. #define VK_ESCAPE         0x1B
  60.  
  61. #define VK_CONVERT        0x1C
  62. #define VK_NONCONVERT     0x1D
  63. #define VK_ACCEPT         0x1E
  64. #define VK_MODECHANGE     0x1F
  65.  
  66. #define VK_SPACE          0x20
  67. #define VK_PRIOR          0x21
  68. #define VK_NEXT           0x22
  69. #define VK_END            0x23
  70. #define VK_HOME           0x24
  71. #define VK_LEFT           0x25
  72. #define VK_UP             0x26
  73. #define VK_RIGHT          0x27
  74. #define VK_DOWN           0x28
  75. #define VK_SELECT         0x29
  76. #define VK_EXECUTE        0x2B
  77. #define VK_SNAPSHOT       0x2C
  78. #define VK_INSERT         0x2D
  79. #define VK_DELETE         0x2E
  80. #define VK_HELP           0x2F
  81.  
  82. /*
  83.  * VK_0 - VK_9 are the same as ASCII '0' - '9' (0x30 - 0x39)
  84.  * 0x40 : unassigned
  85.  * VK_A - VK_Z are the same as ASCII 'A' - 'Z' (0x41 - 0x5A)
  86.  */
  87.  
  88. #define VK_LWIN           0x5B
  89. #define VK_RWIN           0x5C
  90. #define VK_APPS           0x5D
  91.  
  92. /*
  93.  * 0x5E : reserved
  94.  */
  95.  
  96. #define VK_SLEEP          0x5F
  97.  
  98. #define VK_NUMPAD0        0x60
  99. #define VK_NUMPAD1        0x61
  100. #define VK_NUMPAD2        0x62
  101. #define VK_NUMPAD3        0x63
  102. #define VK_NUMPAD4        0x64
  103. #define VK_NUMPAD5        0x65
  104. #define VK_NUMPAD6        0x66
  105. #define VK_NUMPAD7        0x67
  106. #define VK_NUMPAD8        0x68
  107. #define VK_NUMPAD9        0x69
  108. #define VK_MULTIPLY       0x6A
  109. #define VK_ADD            0x6B
  110. #define VK_SEPARATOR      0x6C
  111. #define VK_SUBTRACT       0x6D
  112. #define VK_DECIMAL        0x6E
  113. #define VK_DIVIDE         0x6F
  114. #define VK_F1             0x70
  115. #define VK_F2             0x71
  116. #define VK_F3             0x72
  117. #define VK_F4             0x73
  118. #define VK_F5             0x74
  119. #define VK_F6             0x75
  120. #define VK_F7             0x76
  121. #define VK_F8             0x77
  122. #define VK_F9             0x78
  123. #define VK_F10            0x79
  124. #define VK_F11            0x7A
  125. #define VK_F12            0x7B
  126. #define VK_F13            0x7C
  127. #define VK_F14            0x7D
  128. #define VK_F15            0x7E
  129. #define VK_F16            0x7F
  130. #define VK_F17            0x80
  131. #define VK_F18            0x81
  132. #define VK_F19            0x82
  133. #define VK_F20            0x83
  134. #define VK_F21            0x84
  135. #define VK_F22            0x85
  136. #define VK_F23            0x86
  137. #define VK_F24            0x87
  138.  
  139. /*
  140.  * 0x88 - 0x8F : unassigned
  141.  */
  142.  
  143. #define VK_NUMLOCK        0x90
  144. #define VK_SCROLL         0x91
  145.  
  146. /*
  147.  * 0x97 - 0x9F : unassigned
  148.  */
  149.  
  150. #define VK_LSHIFT         0xA0
  151. #define VK_RSHIFT         0xA1
  152. #define VK_LCONTROL       0xA2
  153. #define VK_RCONTROL       0xA3
  154. #define VK_LMENU          0xA4
  155. #define VK_RMENU          0xA5
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top