/platform/osx/platform/definitions.d

http://github.com/wilkie/djehuty · D · 132 lines · 121 code · 9 blank · 2 comment · 0 complexity · e6c28dbc1eb4b9b039a3adfd2d4284e4 MD5 · raw file

  1. module platform.definitions;
  2. version(PlatformOSX) {
  3. alias char Char;
  4. import core.parameters;
  5. static const Parameter_Colorbpp Colorbpp = Parameter_Colorbpp.Color8bpp;
  6. static const Parameter_ColorType ColorType = Parameter_ColorType.ColorRGBA;
  7. const auto FontMonospace = "Courier";
  8. const auto FontTimes = "Times New Roman";
  9. const auto FontSans = "Sans";
  10. const auto FontSerif = "Sans Serif";
  11. const auto FontSystem = "Sans Serif";
  12. const int KeyBackspace = 0x8; //0x08
  13. const int KeyTab = 0x9; //0x09
  14. const int KeyReturn = 0xD; //0x0D
  15. const int KeyAmbiShift = 0x10; //0x10
  16. const int KeyAmbiControl = 0x11; //0x11
  17. const int KeyAmbiAlt = 0x12; //0x12
  18. const int KeyPause = 0x13; //0x13
  19. const int KeyCapsLock = 0x14; //0x14
  20. const int KeyEscape = 0x1b; //0x1B
  21. const int KeySpace = 0x20; //0x20
  22. const int KeyPageUp = 0x21; //0x21
  23. const int KeyPageDown = 0x22; //0x22
  24. const int KeyEnd = 0x23; //0x23
  25. const int KeyHome = 0x24; //0x24
  26. const int KeyArrowLeft = 0x25; //0x25
  27. const int KeyArrowUp = 0x26; //0x26
  28. const int KeyArrowRight = 0x27; //0x27
  29. const int KeyArrowDown = 0x28; //0x28
  30. const int KeyInsert = 0x2D; //0x2D
  31. const int KeyDelete = 0x2E; //0x2E
  32. const int Key0 = 0x30;
  33. const int Key1 = 0x31;
  34. const int Key2 = 0x32;
  35. const int Key3 = 0x33;
  36. const int Key4 = 0x34;
  37. const int Key5 = 0x35;
  38. const int Key6 = 0x36;
  39. const int Key7 = 0x37;
  40. const int Key8 = 0x38;
  41. const int Key9 = 0x39;
  42. //SECOND LEVEL
  43. const int KeyA = 0x41;
  44. const int KeyB = 0x42;
  45. const int KeyC = 0x43;
  46. const int KeyD = 0x44;
  47. const int KeyE = 0x45;
  48. const int KeyF = 0x46;
  49. const int KeyG = 0x47;
  50. const int KeyH = 0x48;
  51. const int KeyI = 0x49;
  52. const int KeyJ = 0x4A;
  53. const int KeyK = 0x4B;
  54. const int KeyL = 0x4C;
  55. const int KeyM = 0x4D;
  56. const int KeyN = 0x4E;
  57. const int KeyO = 0x4F;
  58. const int KeyP = 0x50;
  59. const int KeyQ = 0x51;
  60. const int KeyR = 0x52;
  61. const int KeyS = 0x53;
  62. const int KeyT = 0x54;
  63. const int KeyU = 0x55;
  64. const int KeyV = 0x56;
  65. const int KeyW = 0x57;
  66. const int KeyX = 0x58;
  67. const int KeyY = 0x59;
  68. const int KeyZ = 0x5A;
  69. const int KeyNumPad0 = 0x60; //0x60
  70. const int KeyNumPad1 = 0x61; //0x61
  71. const int KeyNumPad2 = 0x62; //0x62
  72. const int KeyNumPad3 = 0x63; //0x63
  73. const int KeyNumPad4 = 0x64; //0x64
  74. const int KeyNumPad5 = 0x65; //0x65
  75. const int KeyNumPad6 = 0x66; //0x66
  76. const int KeyNumPad7 = 0x67; //0x67
  77. const int KeyNumPad8 = 0x68; //0x68
  78. const int KeyNumPad9 = 0x69; //0x69
  79. const int KeyF1 = 0x70; //0x70
  80. const int KeyF2 = 0x71; //0x71
  81. const int KeyF3 = 0x72; //0x72
  82. const int KeyF4 = 0x73; //0x73
  83. const int KeyF5 = 0x74; //0x74
  84. const int KeyF6 = 0x75; //0x75
  85. const int KeyF7 = 0x76; //0x76
  86. const int KeyF8 = 0x77; //0x77
  87. const int KeyF9 = 0x78; //0x78
  88. const int KeyF10 = 0x79; //0x79
  89. const int KeyF11 = 0x7a; //0x7A
  90. const int KeyF12 = 0x7b; //0x7B
  91. const int KeyF13 = 0x7c; //0x7C
  92. const int KeyF14 = 0x7d; //0x7D
  93. const int KeyF15 = 0x7e; //0x7E
  94. const int KeyF16 = 0x7f; //0x7F
  95. //THIRD LEVEL
  96. const int KeyF17 = 0x80; //0x80
  97. const int KeyF18 = 0x81; //0x81
  98. const int KeyF19 = 0x82; //0x82
  99. const int KeyF20 = 0x83; //0x83
  100. const int KeyF21 = 0x84; //0x84
  101. const int KeyF22 = 0x85; //0x85
  102. const int KeyF23 = 0x86; //0x86
  103. const int KeyF24 = 0x87; //0x87
  104. const int KeyNumLock = 0x90; //0x90
  105. const int KeyScrollLock = 0x91; //0x91
  106. const int KeyLeftShift = 0xA0; //0xA0
  107. const int KeyRightShift = 0xA1; //0xA1
  108. const int KeyLeftControl = 0xA2; //0xA2
  109. const int KeyRightControl = 0xA3; //0xA3
  110. const int KeyLeftAlt = 0xA4; //0xA4
  111. const int KeyRightAlt = 0xA5; //0xA5
  112. const uint KeySingleQuote = '`';
  113. const uint KeySemicolon = ';';
  114. const uint KeyLeftBracket = '[';
  115. const uint KeyRightBracket = ']';
  116. const uint KeyComma = ',';
  117. const uint KeyPeriod = '.';
  118. const uint KeyForeslash = '/';
  119. const uint KeyBackslash = '\\';
  120. const uint KeyQuote = '\'';
  121. const uint KeyMinus = '-';
  122. const uint KeyEquals = '=';
  123. }