PageRenderTime 25ms CodeModel.GetById 12ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

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