PageRenderTime 43ms CodeModel.GetById 10ms app.highlight 28ms RepoModel.GetById 1ms app.codeStats 1ms

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