/platform/win/platform/definitions.d

http://github.com/wilkie/djehuty · D · 149 lines · 120 code · 15 blank · 14 comment · 0 complexity · ed2e6499d1aa6687149fde4bb847efe2 MD5 · raw file

  1. /*
  2. * definitions.d
  3. *
  4. * This file holds common definitions to programmable parameters for Windows.
  5. *
  6. * Author: Dave Wilkinson
  7. *
  8. */
  9. module platform.definitions;
  10. import platform.win.common;
  11. import core.parameters;
  12. // String Representation
  13. alias wchar Char;
  14. // Color Representation
  15. static const Parameter_Colorbpp Colorbpp = Parameter_Colorbpp.Color8bpp;
  16. static const Parameter_ColorType ColorType = Parameter_ColorType.ColorBGRA;
  17. // Common Fonts
  18. const string FontMonospace = "Courier";
  19. const string FontTimes = "Times New Roman";
  20. const string FontSans = "Arial";
  21. const string FontSerif = "Sans Serif";
  22. const string FontSystem = "Sans Serif";
  23. // Keyboard
  24. const uint KeyBackspace = VK_BACK; //0x08
  25. const uint KeyTab = VK_TAB; //0x09
  26. const uint KeyReturn = VK_RETURN; //0x0D
  27. const uint KeyAmbiShift = VK_SHIFT; //0x10
  28. const uint KeyAmbiControl = VK_CONTROL; //0x11
  29. const uint KeyAmbiAlt = VK_MENU; //0x12
  30. const uint KeyPause = VK_PAUSE; //0x13
  31. const uint KeyCapsLock = VK_CAPITAL; //0x14
  32. const uint KeyEscape = VK_ESCAPE; //0x1B
  33. const uint KeySpace = VK_SPACE; //0x20
  34. const uint KeyPageUp = VK_PRIOR; //0x21
  35. const uint KeyPageDown = VK_NEXT; //0x22
  36. const uint KeyEnd = VK_END; //0x23
  37. const uint KeyHome = VK_HOME; //0x24
  38. const uint KeyArrowLeft = VK_LEFT; //0x25
  39. const uint KeyArrowUp = VK_UP; //0x26
  40. const uint KeyArrowRight = VK_RIGHT; //0x27
  41. const uint KeyArrowDown = VK_DOWN; //0x28
  42. const uint KeyInsert = VK_INSERT; //0x2D
  43. const uint KeyDelete = VK_DELETE; //0x2E
  44. const uint Key0 = 0x30;
  45. const uint Key1 = 0x31;
  46. const uint Key2 = 0x32;
  47. const uint Key3 = 0x33;
  48. const uint Key4 = 0x34;
  49. const uint Key5 = 0x35;
  50. const uint Key6 = 0x36;
  51. const uint Key7 = 0x37;
  52. const uint Key8 = 0x38;
  53. const uint Key9 = 0x39;
  54. //SECOND LEVEL
  55. const uint KeyA = 0x41;
  56. const uint KeyB = 0x42;
  57. const uint KeyC = 0x43;
  58. const uint KeyD = 0x44;
  59. const uint KeyE = 0x45;
  60. const uint KeyF = 0x46;
  61. const uint KeyG = 0x47;
  62. const uint KeyH = 0x48;
  63. const uint KeyI = 0x49;
  64. const uint KeyJ = 0x4A;
  65. const uint KeyK = 0x4B;
  66. const uint KeyL = 0x4C;
  67. const uint KeyM = 0x4D;
  68. const uint KeyN = 0x4E;
  69. const uint KeyO = 0x4F;
  70. const uint KeyP = 0x50;
  71. const uint KeyQ = 0x51;
  72. const uint KeyR = 0x52;
  73. const uint KeyS = 0x53;
  74. const uint KeyT = 0x54;
  75. const uint KeyU = 0x55;
  76. const uint KeyV = 0x56;
  77. const uint KeyW = 0x57;
  78. const uint KeyX = 0x58;
  79. const uint KeyY = 0x59;
  80. const uint KeyZ = 0x5A;
  81. const uint KeySingleQuote = VK_OEM_3;
  82. const uint KeySemicolon = VK_OEM_1;
  83. const uint KeyLeftBracket = VK_OEM_4;
  84. const uint KeyRightBracket = VK_OEM_6;
  85. const uint KeyComma = VK_OEM_COMMA;
  86. const uint KeyPeriod = VK_OEM_PERIOD;
  87. const uint KeyForeslash = VK_OEM_2;
  88. const uint KeyBackslash = VK_OEM_5;
  89. const uint KeyQuote = VK_OEM_7;
  90. const uint KeyMinus = VK_OEM_MINUS;
  91. const uint KeyEquals = VK_OEM_PLUS;
  92. const uint KeyNumPad0 = VK_NUMPAD0; //0x60
  93. const uint KeyNumPad1 = VK_NUMPAD1; //0x61
  94. const uint KeyNumPad2 = VK_NUMPAD2; //0x62
  95. const uint KeyNumPad3 = VK_NUMPAD3; //0x63
  96. const uint KeyNumPad4 = VK_NUMPAD4; //0x64
  97. const uint KeyNumPad5 = VK_NUMPAD5; //0x65
  98. const uint KeyNumPad6 = VK_NUMPAD6; //0x66
  99. const uint KeyNumPad7 = VK_NUMPAD7; //0x67
  100. const uint KeyNumPad8 = VK_NUMPAD8; //0x68
  101. const uint KeyNumPad9 = VK_NUMPAD9; //0x69
  102. const uint KeyF1 = VK_F1; //0x70
  103. const uint KeyF2 = VK_F2; //0x71
  104. const uint KeyF3 = VK_F3; //0x72
  105. const uint KeyF4 = VK_F4; //0x73
  106. const uint KeyF5 = VK_F5; //0x74
  107. const uint KeyF6 = VK_F6; //0x75
  108. const uint KeyF7 = VK_F7; //0x76
  109. const uint KeyF8 = VK_F8; //0x77
  110. const uint KeyF9 = VK_F9; //0x78
  111. const uint KeyF10 = VK_F10; //0x79
  112. const uint KeyF11 = VK_F11; //0x7A
  113. const uint KeyF12 = VK_F12; //0x7B
  114. const uint KeyF13 = VK_F13; //0x7C
  115. const uint KeyF14 = VK_F14; //0x7D
  116. const uint KeyF15 = VK_F15; //0x7E
  117. const uint KeyF16 = VK_F16; //0x7F
  118. //THIRD LEVEL
  119. const uint KeyF17 = VK_F17; //0x80
  120. const uint KeyF18 = VK_F18; //0x81
  121. const uint KeyF19 = VK_F19; //0x82
  122. const uint KeyF20 = VK_F20; //0x83
  123. const uint KeyF21 = VK_F21; //0x84
  124. const uint KeyF22 = VK_F22; //0x85
  125. const uint KeyF23 = VK_F23; //0x86
  126. const uint KeyF24 = VK_F24; //0x87
  127. const uint KeyNumLock = VK_NUMLOCK; //0x90
  128. const uint KeyScrollLock = VK_SCROLL; //0x91
  129. const uint KeyLeftShift = VK_LSHIFT; //0xA0
  130. const uint KeyRightShift = VK_RSHIFT; //0xA1
  131. const uint KeyLeftControl = VK_LCONTROL; //0xA2
  132. const uint KeyRightControl = VK_RCONTROL; //0xA3
  133. const uint KeyLeftAlt = VK_LMENU; //0xA4
  134. const uint KeyRightAlt = VK_RMENU; //0xA5