World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
7 #ifndef VK_LBUTTON // should replace win32 defines with custom enums
11 #define VK_LBUTTON 0x01
12 #define VK_RBUTTON 0x02
13 #define VK_CANCEL 0x03
14 #define VK_MBUTTON 0x04
16 #if (_WIN32_WINNT >= 0x0500)
17 #define VK_XBUTTON1 0x05
18 #define VK_XBUTTON2 0x06
33 #define VK_RETURN 0x0D
36 #define VK_CONTROL 0x11
39 #define VK_CAPITAL 0x14
42 #define VK_HANGEUL 0x15
43 #define VK_HANGUL 0x15
49 #define VK_ESCAPE 0x1B
51 #define VK_CONVERT 0x1C
52 #define VK_NONCONVERT 0x1D
53 #define VK_ACCEPT 0x1E
54 #define VK_MODECHANGE 0x1F
65 #define VK_SELECT 0x29
67 #define VK_EXECUTE 0x2B
68 #define VK_SNAPSHOT 0x2C
69 #define VK_INSERT 0x2D
70 #define VK_DELETE 0x2E
89 #define VK_NUMPAD0 0x60
90 #define VK_NUMPAD1 0x61
91 #define VK_NUMPAD2 0x62
92 #define VK_NUMPAD3 0x63
93 #define VK_NUMPAD4 0x64
94 #define VK_NUMPAD5 0x65
95 #define VK_NUMPAD6 0x66
96 #define VK_NUMPAD7 0x67
97 #define VK_NUMPAD8 0x68
98 #define VK_NUMPAD9 0x69
99 #define VK_MULTIPLY 0x6A
101 #define VK_SEPARATOR 0x6C
102 #define VK_SUBTRACT 0x6D
103 #define VK_DECIMAL 0x6E
104 #define VK_DIVIDE 0x6F
134 #define VK_NUMLOCK 0x90
135 #define VK_SCROLL 0x91
140 #define VK_OEM_NEC_EQUAL 0x92 // '=' key on numpad
145 #define VK_OEM_FJ_JISHO 0x92 // 'Dictionary' key
146 #define VK_OEM_FJ_MASSHOU 0x93 // 'Unregister word' key
147 #define VK_OEM_FJ_TOUROKU 0x94 // 'Register word' key
148 #define VK_OEM_FJ_LOYA 0x95 // 'Left OYAYUBI' key
149 #define VK_OEM_FJ_ROYA 0x96 // 'Right OYAYUBI' key
160 #define VK_LSHIFT 0xA0
161 #define VK_RSHIFT 0xA1
162 #define VK_LCONTROL 0xA2
163 #define VK_RCONTROL 0xA3
164 #define VK_LMENU 0xA4
165 #define VK_RMENU 0xA5
167 #if (_WIN32_WINNT >= 0x0500)
168 #define VK_BROWSER_BACK 0xA6
169 #define VK_BROWSER_FORWARD 0xA7
170 #define VK_BROWSER_REFRESH 0xA8
171 #define VK_BROWSER_STOP 0xA9
172 #define VK_BROWSER_SEARCH 0xAA
173 #define VK_BROWSER_FAVORITES 0xAB
174 #define VK_BROWSER_HOME 0xAC
176 #define VK_VOLUME_MUTE 0xAD
177 #define VK_VOLUME_DOWN 0xAE
178 #define VK_VOLUME_UP 0xAF
179 #define VK_MEDIA_NEXT_TRACK 0xB0
180 #define VK_MEDIA_PREV_TRACK 0xB1
181 #define VK_MEDIA_STOP 0xB2
182 #define VK_MEDIA_PLAY_PAUSE 0xB3
183 #define VK_LAUNCH_MAIL 0xB4
184 #define VK_LAUNCH_MEDIA_SELECT 0xB5
185 #define VK_LAUNCH_APP1 0xB6
186 #define VK_LAUNCH_APP2 0xB7
194 #define VK_OEM_1 0xBA // ';:' for US
195 #define VK_OEM_PLUS 0xBB // '+' any country
196 #define VK_OEM_COMMA 0xBC // ',' any country
197 #define VK_OEM_MINUS 0xBD // '-' any country
198 #define VK_OEM_PERIOD 0xBE // '.' any country
199 #define VK_OEM_2 0xBF // '/?' for US
200 #define VK_OEM_3 0xC0 // '`~' for US
210 #define VK_OEM_4 0xDB // '[{' for US
211 #define VK_OEM_5 0xDC // '\|' for US
212 #define VK_OEM_6 0xDD // ']}' for US
213 #define VK_OEM_7 0xDE // ''"' for US
214 #define VK_OEM_8 0xDF
223 #define VK_OEM_AX 0xE1 // 'AX' key on Japanese AX kbd
224 #define VK_OEM_102 0xE2 // "<>" or "\|" on RT 102-key kbd.
225 #define VK_ICO_HELP 0xE3 // Help key on ICO
226 #define VK_ICO_00 0xE4 // 00 key on ICO
228 #if (WINVER >= 0x0400)
229 #define VK_PROCESSKEY 0xE5
232 #define VK_ICO_CLEAR 0xE6
234 #if (_WIN32_WINNT >= 0x0500)
235 #define VK_PACKET 0xE7
245 #define VK_OEM_RESET 0xE9
246 #define VK_OEM_JUMP 0xEA
247 #define VK_OEM_PA1 0xEB
248 #define VK_OEM_PA2 0xEC
249 #define VK_OEM_PA3 0xED
250 #define VK_OEM_WSCTRL 0xEE
251 #define VK_OEM_CUSEL 0xEF
252 #define VK_OEM_ATTN 0xF0
253 #define VK_OEM_FINISH 0xF1
254 #define VK_OEM_COPY 0xF2
255 #define VK_OEM_AUTO 0xF3
256 #define VK_OEM_ENLW 0xF4
257 #define VK_OEM_BACKTAB 0xF5
260 #define VK_CRSEL 0xF7
261 #define VK_EXSEL 0xF8
262 #define VK_EREOF 0xF9
265 #define VK_NONAME 0xFC
267 #define VK_OEM_CLEAR 0xFE
292 void GetClickPos(
unsigned int *pX,
unsigned int *pY);
unsigned __int16 uint16_t
void SetMouseClick(int x, int y)
void AllocCursorSystemMem()
unsigned int uMouseClickY
bool UI_OnVkKeyDown(unsigned int vkKey)
void DrawCursorToTarget()
unsigned int uMouseClickX
EGLSurface EGLint EGLint y
void Initialize(OSWindow *window)
uint8_t * pCursorBitmap2_sysmem
unsigned int uPointingObjectID
EGLSurface EGLNativeWindowType * window
void ChangeActivation(int a1)
void GetClickPos(unsigned int *pX, unsigned int *pY)
void SetActive(bool active)
void SetCurrentCursorBitmap()
EGLImageKHR EGLint * name
void * DoAllocCursorMem()
void SetCursorBitmapFromItemID(unsigned int uItemID)
void SetCursorImage(const String &name)
unsigned int bInitialized
void UI_OnMouseLeftClick()
void ReadCursorWithItem()
uint16_t * pCursorBitmap_sysmem