Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowWin32.cpp
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| else { | else { | ||||
| // invalidate the window | // invalidate the window | ||||
| ::DestroyWindow(m_hWnd); | ::DestroyWindow(m_hWnd); | ||||
| m_hWnd = NULL; | m_hWnd = NULL; | ||||
| } | } | ||||
| } | } | ||||
| if (parentwindow && !dialog) { | |||||
| RAWINPUTDEVICE device = {0}; | |||||
| device.usUsagePage = 0x01; /* usUsagePage & usUsage for keyboard*/ | |||||
| device.usUsage = 0x06; /* http://msdn.microsoft.com/en-us/windows/hardware/gg487473.aspx */ | |||||
| device.dwFlags |= | |||||
| RIDEV_INPUTSINK; // makes WM_INPUT is visible for ghost when has parent window | |||||
| device.hwndTarget = m_hWnd; | |||||
| RegisterRawInputDevices(&device, 1, sizeof(device)); | |||||
| } | |||||
| // Initialize Windows Ink | // Initialize Windows Ink | ||||
| if (m_user32) { | if (m_user32) { | ||||
| m_fpGetPointerInfoHistory = (GHOST_WIN32_GetPointerInfoHistory)::GetProcAddress( | m_fpGetPointerInfoHistory = (GHOST_WIN32_GetPointerInfoHistory)::GetProcAddress( | ||||
| m_user32, "GetPointerInfoHistory"); | m_user32, "GetPointerInfoHistory"); | ||||
| m_fpGetPointerPenInfoHistory = (GHOST_WIN32_GetPointerPenInfoHistory)::GetProcAddress( | m_fpGetPointerPenInfoHistory = (GHOST_WIN32_GetPointerPenInfoHistory)::GetProcAddress( | ||||
| m_user32, "GetPointerPenInfoHistory"); | m_user32, "GetPointerPenInfoHistory"); | ||||
| m_fpGetPointerTouchInfoHistory = (GHOST_WIN32_GetPointerTouchInfoHistory)::GetProcAddress( | m_fpGetPointerTouchInfoHistory = (GHOST_WIN32_GetPointerTouchInfoHistory)::GetProcAddress( | ||||
| m_user32, "GetPointerTouchInfoHistory"); | m_user32, "GetPointerTouchInfoHistory"); | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||