• Home
  • Raw
  • Download

Lines Matching full:win32

2 // GLFW 3.5 Win32 - www.glfw.org
77 (HMODULE*) &_glfw.win32.instance)) in loadLibraries()
80 "Win32: Failed to retrieve own module handle"); in loadLibraries()
84 _glfw.win32.user32.instance = _glfwPlatformLoadModule("user32.dll"); in loadLibraries()
85 if (!_glfw.win32.user32.instance) in loadLibraries()
88 "Win32: Failed to load user32.dll"); in loadLibraries()
92 _glfw.win32.user32.SetProcessDPIAware_ = (PFN_SetProcessDPIAware) in loadLibraries()
93 _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "SetProcessDPIAware"); in loadLibraries()
94 _glfw.win32.user32.ChangeWindowMessageFilterEx_ = (PFN_ChangeWindowMessageFilterEx) in loadLibraries()
95 _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "ChangeWindowMessageFilterEx"); in loadLibraries()
96 _glfw.win32.user32.EnableNonClientDpiScaling_ = (PFN_EnableNonClientDpiScaling) in loadLibraries()
97 _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "EnableNonClientDpiScaling"); in loadLibraries()
98 _glfw.win32.user32.SetProcessDpiAwarenessContext_ = (PFN_SetProcessDpiAwarenessContext) in loadLibraries()
99 _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "SetProcessDpiAwarenessContext"); in loadLibraries()
100 _glfw.win32.user32.GetDpiForWindow_ = (PFN_GetDpiForWindow) in loadLibraries()
101 _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "GetDpiForWindow"); in loadLibraries()
102 _glfw.win32.user32.AdjustWindowRectExForDpi_ = (PFN_AdjustWindowRectExForDpi) in loadLibraries()
103 _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "AdjustWindowRectExForDpi"); in loadLibraries()
104 _glfw.win32.user32.GetSystemMetricsForDpi_ = (PFN_GetSystemMetricsForDpi) in loadLibraries()
105 _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "GetSystemMetricsForDpi"); in loadLibraries()
107 _glfw.win32.dinput8.instance = _glfwPlatformLoadModule("dinput8.dll"); in loadLibraries()
108 if (_glfw.win32.dinput8.instance) in loadLibraries()
110 _glfw.win32.dinput8.Create = (PFN_DirectInput8Create) in loadLibraries()
111 _glfwPlatformGetModuleSymbol(_glfw.win32.dinput8.instance, "DirectInput8Create"); in loadLibraries()
128 _glfw.win32.xinput.instance = _glfwPlatformLoadModule(names[i]); in loadLibraries()
129 if (_glfw.win32.xinput.instance) in loadLibraries()
131 _glfw.win32.xinput.GetCapabilities = (PFN_XInputGetCapabilities) in loadLibraries()
132 … _glfwPlatformGetModuleSymbol(_glfw.win32.xinput.instance, "XInputGetCapabilities"); in loadLibraries()
133 _glfw.win32.xinput.GetState = (PFN_XInputGetState) in loadLibraries()
134 _glfwPlatformGetModuleSymbol(_glfw.win32.xinput.instance, "XInputGetState"); in loadLibraries()
141 _glfw.win32.dwmapi.instance = _glfwPlatformLoadModule("dwmapi.dll"); in loadLibraries()
142 if (_glfw.win32.dwmapi.instance) in loadLibraries()
144 _glfw.win32.dwmapi.IsCompositionEnabled = (PFN_DwmIsCompositionEnabled) in loadLibraries()
145 _glfwPlatformGetModuleSymbol(_glfw.win32.dwmapi.instance, "DwmIsCompositionEnabled"); in loadLibraries()
146 _glfw.win32.dwmapi.Flush = (PFN_DwmFlush) in loadLibraries()
147 _glfwPlatformGetModuleSymbol(_glfw.win32.dwmapi.instance, "DwmFlush"); in loadLibraries()
148 _glfw.win32.dwmapi.EnableBlurBehindWindow = (PFN_DwmEnableBlurBehindWindow) in loadLibraries()
149 _glfwPlatformGetModuleSymbol(_glfw.win32.dwmapi.instance, "DwmEnableBlurBehindWindow"); in loadLibraries()
150 _glfw.win32.dwmapi.GetColorizationColor = (PFN_DwmGetColorizationColor) in loadLibraries()
151 _glfwPlatformGetModuleSymbol(_glfw.win32.dwmapi.instance, "DwmGetColorizationColor"); in loadLibraries()
154 _glfw.win32.shcore.instance = _glfwPlatformLoadModule("shcore.dll"); in loadLibraries()
155 if (_glfw.win32.shcore.instance) in loadLibraries()
157 _glfw.win32.shcore.SetProcessDpiAwareness_ = (PFN_SetProcessDpiAwareness) in loadLibraries()
158 _glfwPlatformGetModuleSymbol(_glfw.win32.shcore.instance, "SetProcessDpiAwareness"); in loadLibraries()
159 _glfw.win32.shcore.GetDpiForMonitor_ = (PFN_GetDpiForMonitor) in loadLibraries()
160 _glfwPlatformGetModuleSymbol(_glfw.win32.shcore.instance, "GetDpiForMonitor"); in loadLibraries()
163 _glfw.win32.ntdll.instance = _glfwPlatformLoadModule("ntdll.dll"); in loadLibraries()
164 if (_glfw.win32.ntdll.instance) in loadLibraries()
166 _glfw.win32.ntdll.RtlVerifyVersionInfo_ = (PFN_RtlVerifyVersionInfo) in loadLibraries()
167 _glfwPlatformGetModuleSymbol(_glfw.win32.ntdll.instance, "RtlVerifyVersionInfo"); in loadLibraries()
177 if (_glfw.win32.xinput.instance) in freeLibraries()
178 _glfwPlatformFreeModule(_glfw.win32.xinput.instance); in freeLibraries()
180 if (_glfw.win32.dinput8.instance) in freeLibraries()
181 _glfwPlatformFreeModule(_glfw.win32.dinput8.instance); in freeLibraries()
183 if (_glfw.win32.user32.instance) in freeLibraries()
184 _glfwPlatformFreeModule(_glfw.win32.user32.instance); in freeLibraries()
186 if (_glfw.win32.dwmapi.instance) in freeLibraries()
187 _glfwPlatformFreeModule(_glfw.win32.dwmapi.instance); in freeLibraries()
189 if (_glfw.win32.shcore.instance) in freeLibraries()
190 _glfwPlatformFreeModule(_glfw.win32.shcore.instance); in freeLibraries()
192 if (_glfw.win32.ntdll.instance) in freeLibraries()
193 _glfwPlatformFreeModule(_glfw.win32.ntdll.instance); in freeLibraries()
202 memset(_glfw.win32.keycodes, -1, sizeof(_glfw.win32.keycodes)); in createKeyTables()
203 memset(_glfw.win32.scancodes, -1, sizeof(_glfw.win32.scancodes)); in createKeyTables()
205 _glfw.win32.keycodes[0x00B] = GLFW_KEY_0; in createKeyTables()
206 _glfw.win32.keycodes[0x002] = GLFW_KEY_1; in createKeyTables()
207 _glfw.win32.keycodes[0x003] = GLFW_KEY_2; in createKeyTables()
208 _glfw.win32.keycodes[0x004] = GLFW_KEY_3; in createKeyTables()
209 _glfw.win32.keycodes[0x005] = GLFW_KEY_4; in createKeyTables()
210 _glfw.win32.keycodes[0x006] = GLFW_KEY_5; in createKeyTables()
211 _glfw.win32.keycodes[0x007] = GLFW_KEY_6; in createKeyTables()
212 _glfw.win32.keycodes[0x008] = GLFW_KEY_7; in createKeyTables()
213 _glfw.win32.keycodes[0x009] = GLFW_KEY_8; in createKeyTables()
214 _glfw.win32.keycodes[0x00A] = GLFW_KEY_9; in createKeyTables()
215 _glfw.win32.keycodes[0x01E] = GLFW_KEY_A; in createKeyTables()
216 _glfw.win32.keycodes[0x030] = GLFW_KEY_B; in createKeyTables()
217 _glfw.win32.keycodes[0x02E] = GLFW_KEY_C; in createKeyTables()
218 _glfw.win32.keycodes[0x020] = GLFW_KEY_D; in createKeyTables()
219 _glfw.win32.keycodes[0x012] = GLFW_KEY_E; in createKeyTables()
220 _glfw.win32.keycodes[0x021] = GLFW_KEY_F; in createKeyTables()
221 _glfw.win32.keycodes[0x022] = GLFW_KEY_G; in createKeyTables()
222 _glfw.win32.keycodes[0x023] = GLFW_KEY_H; in createKeyTables()
223 _glfw.win32.keycodes[0x017] = GLFW_KEY_I; in createKeyTables()
224 _glfw.win32.keycodes[0x024] = GLFW_KEY_J; in createKeyTables()
225 _glfw.win32.keycodes[0x025] = GLFW_KEY_K; in createKeyTables()
226 _glfw.win32.keycodes[0x026] = GLFW_KEY_L; in createKeyTables()
227 _glfw.win32.keycodes[0x032] = GLFW_KEY_M; in createKeyTables()
228 _glfw.win32.keycodes[0x031] = GLFW_KEY_N; in createKeyTables()
229 _glfw.win32.keycodes[0x018] = GLFW_KEY_O; in createKeyTables()
230 _glfw.win32.keycodes[0x019] = GLFW_KEY_P; in createKeyTables()
231 _glfw.win32.keycodes[0x010] = GLFW_KEY_Q; in createKeyTables()
232 _glfw.win32.keycodes[0x013] = GLFW_KEY_R; in createKeyTables()
233 _glfw.win32.keycodes[0x01F] = GLFW_KEY_S; in createKeyTables()
234 _glfw.win32.keycodes[0x014] = GLFW_KEY_T; in createKeyTables()
235 _glfw.win32.keycodes[0x016] = GLFW_KEY_U; in createKeyTables()
236 _glfw.win32.keycodes[0x02F] = GLFW_KEY_V; in createKeyTables()
237 _glfw.win32.keycodes[0x011] = GLFW_KEY_W; in createKeyTables()
238 _glfw.win32.keycodes[0x02D] = GLFW_KEY_X; in createKeyTables()
239 _glfw.win32.keycodes[0x015] = GLFW_KEY_Y; in createKeyTables()
240 _glfw.win32.keycodes[0x02C] = GLFW_KEY_Z; in createKeyTables()
242 _glfw.win32.keycodes[0x028] = GLFW_KEY_APOSTROPHE; in createKeyTables()
243 _glfw.win32.keycodes[0x02B] = GLFW_KEY_BACKSLASH; in createKeyTables()
244 _glfw.win32.keycodes[0x033] = GLFW_KEY_COMMA; in createKeyTables()
245 _glfw.win32.keycodes[0x00D] = GLFW_KEY_EQUAL; in createKeyTables()
246 _glfw.win32.keycodes[0x029] = GLFW_KEY_GRAVE_ACCENT; in createKeyTables()
247 _glfw.win32.keycodes[0x01A] = GLFW_KEY_LEFT_BRACKET; in createKeyTables()
248 _glfw.win32.keycodes[0x00C] = GLFW_KEY_MINUS; in createKeyTables()
249 _glfw.win32.keycodes[0x034] = GLFW_KEY_PERIOD; in createKeyTables()
250 _glfw.win32.keycodes[0x01B] = GLFW_KEY_RIGHT_BRACKET; in createKeyTables()
251 _glfw.win32.keycodes[0x027] = GLFW_KEY_SEMICOLON; in createKeyTables()
252 _glfw.win32.keycodes[0x035] = GLFW_KEY_SLASH; in createKeyTables()
253 _glfw.win32.keycodes[0x056] = GLFW_KEY_WORLD_2; in createKeyTables()
255 _glfw.win32.keycodes[0x00E] = GLFW_KEY_BACKSPACE; in createKeyTables()
256 _glfw.win32.keycodes[0x153] = GLFW_KEY_DELETE; in createKeyTables()
257 _glfw.win32.keycodes[0x14F] = GLFW_KEY_END; in createKeyTables()
258 _glfw.win32.keycodes[0x01C] = GLFW_KEY_ENTER; in createKeyTables()
259 _glfw.win32.keycodes[0x001] = GLFW_KEY_ESCAPE; in createKeyTables()
260 _glfw.win32.keycodes[0x147] = GLFW_KEY_HOME; in createKeyTables()
261 _glfw.win32.keycodes[0x152] = GLFW_KEY_INSERT; in createKeyTables()
262 _glfw.win32.keycodes[0x15D] = GLFW_KEY_MENU; in createKeyTables()
263 _glfw.win32.keycodes[0x151] = GLFW_KEY_PAGE_DOWN; in createKeyTables()
264 _glfw.win32.keycodes[0x149] = GLFW_KEY_PAGE_UP; in createKeyTables()
265 _glfw.win32.keycodes[0x045] = GLFW_KEY_PAUSE; in createKeyTables()
266 _glfw.win32.keycodes[0x039] = GLFW_KEY_SPACE; in createKeyTables()
267 _glfw.win32.keycodes[0x00F] = GLFW_KEY_TAB; in createKeyTables()
268 _glfw.win32.keycodes[0x03A] = GLFW_KEY_CAPS_LOCK; in createKeyTables()
269 _glfw.win32.keycodes[0x145] = GLFW_KEY_NUM_LOCK; in createKeyTables()
270 _glfw.win32.keycodes[0x046] = GLFW_KEY_SCROLL_LOCK; in createKeyTables()
271 _glfw.win32.keycodes[0x03B] = GLFW_KEY_F1; in createKeyTables()
272 _glfw.win32.keycodes[0x03C] = GLFW_KEY_F2; in createKeyTables()
273 _glfw.win32.keycodes[0x03D] = GLFW_KEY_F3; in createKeyTables()
274 _glfw.win32.keycodes[0x03E] = GLFW_KEY_F4; in createKeyTables()
275 _glfw.win32.keycodes[0x03F] = GLFW_KEY_F5; in createKeyTables()
276 _glfw.win32.keycodes[0x040] = GLFW_KEY_F6; in createKeyTables()
277 _glfw.win32.keycodes[0x041] = GLFW_KEY_F7; in createKeyTables()
278 _glfw.win32.keycodes[0x042] = GLFW_KEY_F8; in createKeyTables()
279 _glfw.win32.keycodes[0x043] = GLFW_KEY_F9; in createKeyTables()
280 _glfw.win32.keycodes[0x044] = GLFW_KEY_F10; in createKeyTables()
281 _glfw.win32.keycodes[0x057] = GLFW_KEY_F11; in createKeyTables()
282 _glfw.win32.keycodes[0x058] = GLFW_KEY_F12; in createKeyTables()
283 _glfw.win32.keycodes[0x064] = GLFW_KEY_F13; in createKeyTables()
284 _glfw.win32.keycodes[0x065] = GLFW_KEY_F14; in createKeyTables()
285 _glfw.win32.keycodes[0x066] = GLFW_KEY_F15; in createKeyTables()
286 _glfw.win32.keycodes[0x067] = GLFW_KEY_F16; in createKeyTables()
287 _glfw.win32.keycodes[0x068] = GLFW_KEY_F17; in createKeyTables()
288 _glfw.win32.keycodes[0x069] = GLFW_KEY_F18; in createKeyTables()
289 _glfw.win32.keycodes[0x06A] = GLFW_KEY_F19; in createKeyTables()
290 _glfw.win32.keycodes[0x06B] = GLFW_KEY_F20; in createKeyTables()
291 _glfw.win32.keycodes[0x06C] = GLFW_KEY_F21; in createKeyTables()
292 _glfw.win32.keycodes[0x06D] = GLFW_KEY_F22; in createKeyTables()
293 _glfw.win32.keycodes[0x06E] = GLFW_KEY_F23; in createKeyTables()
294 _glfw.win32.keycodes[0x076] = GLFW_KEY_F24; in createKeyTables()
295 _glfw.win32.keycodes[0x038] = GLFW_KEY_LEFT_ALT; in createKeyTables()
296 _glfw.win32.keycodes[0x01D] = GLFW_KEY_LEFT_CONTROL; in createKeyTables()
297 _glfw.win32.keycodes[0x02A] = GLFW_KEY_LEFT_SHIFT; in createKeyTables()
298 _glfw.win32.keycodes[0x15B] = GLFW_KEY_LEFT_SUPER; in createKeyTables()
299 _glfw.win32.keycodes[0x137] = GLFW_KEY_PRINT_SCREEN; in createKeyTables()
300 _glfw.win32.keycodes[0x138] = GLFW_KEY_RIGHT_ALT; in createKeyTables()
301 _glfw.win32.keycodes[0x11D] = GLFW_KEY_RIGHT_CONTROL; in createKeyTables()
302 _glfw.win32.keycodes[0x036] = GLFW_KEY_RIGHT_SHIFT; in createKeyTables()
303 _glfw.win32.keycodes[0x15C] = GLFW_KEY_RIGHT_SUPER; in createKeyTables()
304 _glfw.win32.keycodes[0x150] = GLFW_KEY_DOWN; in createKeyTables()
305 _glfw.win32.keycodes[0x14B] = GLFW_KEY_LEFT; in createKeyTables()
306 _glfw.win32.keycodes[0x14D] = GLFW_KEY_RIGHT; in createKeyTables()
307 _glfw.win32.keycodes[0x148] = GLFW_KEY_UP; in createKeyTables()
309 _glfw.win32.keycodes[0x052] = GLFW_KEY_KP_0; in createKeyTables()
310 _glfw.win32.keycodes[0x04F] = GLFW_KEY_KP_1; in createKeyTables()
311 _glfw.win32.keycodes[0x050] = GLFW_KEY_KP_2; in createKeyTables()
312 _glfw.win32.keycodes[0x051] = GLFW_KEY_KP_3; in createKeyTables()
313 _glfw.win32.keycodes[0x04B] = GLFW_KEY_KP_4; in createKeyTables()
314 _glfw.win32.keycodes[0x04C] = GLFW_KEY_KP_5; in createKeyTables()
315 _glfw.win32.keycodes[0x04D] = GLFW_KEY_KP_6; in createKeyTables()
316 _glfw.win32.keycodes[0x047] = GLFW_KEY_KP_7; in createKeyTables()
317 _glfw.win32.keycodes[0x048] = GLFW_KEY_KP_8; in createKeyTables()
318 _glfw.win32.keycodes[0x049] = GLFW_KEY_KP_9; in createKeyTables()
319 _glfw.win32.keycodes[0x04E] = GLFW_KEY_KP_ADD; in createKeyTables()
320 _glfw.win32.keycodes[0x053] = GLFW_KEY_KP_DECIMAL; in createKeyTables()
321 _glfw.win32.keycodes[0x135] = GLFW_KEY_KP_DIVIDE; in createKeyTables()
322 _glfw.win32.keycodes[0x11C] = GLFW_KEY_KP_ENTER; in createKeyTables()
323 _glfw.win32.keycodes[0x059] = GLFW_KEY_KP_EQUAL; in createKeyTables()
324 _glfw.win32.keycodes[0x037] = GLFW_KEY_KP_MULTIPLY; in createKeyTables()
325 _glfw.win32.keycodes[0x04A] = GLFW_KEY_KP_SUBTRACT; in createKeyTables()
329 if (_glfw.win32.keycodes[scancode] > 0) in createKeyTables()
330 _glfw.win32.scancodes[_glfw.win32.keycodes[scancode]] = scancode; in createKeyTables()
378 wc.hInstance = _glfw.win32.instance; in createHelperWindow()
381 _glfw.win32.helperWindowClass = RegisterClassExW(&wc); in createHelperWindow()
382 if (!_glfw.win32.helperWindowClass) in createHelperWindow()
385 "Win32: Failed to register helper window class"); in createHelperWindow()
389 _glfw.win32.helperWindowHandle = in createHelperWindow()
391 MAKEINTATOM(_glfw.win32.helperWindowClass), in createHelperWindow()
396 _glfw.win32.instance, in createHelperWindow()
399 if (!_glfw.win32.helperWindowHandle) in createHelperWindow()
402 "Win32: Failed to create helper window"); in createHelperWindow()
408 ShowWindow(_glfw.win32.helperWindowHandle, SW_HIDE); in createHelperWindow()
418 _glfw.win32.deviceNotificationHandle = in createHelperWindow()
419 RegisterDeviceNotificationW(_glfw.win32.helperWindowHandle, in createHelperWindow()
424 while (PeekMessageW(&msg, _glfw.win32.helperWindowHandle, 0, 0, PM_REMOVE)) in createHelperWindow()
448 "Win32: Failed to convert string from UTF-8"); in _glfwCreateWideStringFromUTF8Win32()
457 "Win32: Failed to convert string from UTF-8"); in _glfwCreateWideStringFromUTF8Win32()
476 "Win32: Failed to convert string to UTF-8"); in _glfwCreateUTF8FromWideStringWin32()
485 "Win32: Failed to convert string to UTF-8"); in _glfwCreateUTF8FromWideStringWin32()
493 // Reports the specified error, appending information about the last Win32 error
521 memset(_glfw.win32.keynames, 0, sizeof(_glfw.win32.keynames)); in _glfwUpdateKeyNamesWin32()
529 scancode = _glfw.win32.scancodes[key]; in _glfwUpdateKeyNamesWin32()
564 _glfw.win32.keynames[key], in _glfwUpdateKeyNamesWin32()
565 sizeof(_glfw.win32.keynames[key]), in _glfwUpdateKeyNamesWin32()
603 const _GLFWplatform win32 = in _glfwConnectWin32() local
679 *platform = win32; in _glfwConnectWin32()
707 if (_glfw.win32.blankCursor) in _glfwTerminateWin32()
708 DestroyIcon((HICON) _glfw.win32.blankCursor); in _glfwTerminateWin32()
710 if (_glfw.win32.deviceNotificationHandle) in _glfwTerminateWin32()
711 UnregisterDeviceNotification(_glfw.win32.deviceNotificationHandle); in _glfwTerminateWin32()
713 if (_glfw.win32.helperWindowHandle) in _glfwTerminateWin32()
714 DestroyWindow(_glfw.win32.helperWindowHandle); in _glfwTerminateWin32()
715 if (_glfw.win32.helperWindowClass) in _glfwTerminateWin32()
716 UnregisterClassW(MAKEINTATOM(_glfw.win32.helperWindowClass), _glfw.win32.instance); in _glfwTerminateWin32()
717 if (_glfw.win32.mainWindowClass) in _glfwTerminateWin32()
718 UnregisterClassW(MAKEINTATOM(_glfw.win32.mainWindowClass), _glfw.win32.instance); in _glfwTerminateWin32()
720 _glfw_free(_glfw.win32.clipboardString); in _glfwTerminateWin32()
721 _glfw_free(_glfw.win32.rawInput); in _glfwTerminateWin32()