Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemWin32.cpp
| Show First 20 Lines • Show All 996 Lines • ▼ Show 20 Lines | for (GHOST_WintabInfoWin32 &info : wintabInfo) { | ||||
| } | } | ||||
| } | } | ||||
| /* Fallback cursor movement if Wintab position were never trusted while processing this event. */ | /* Fallback cursor movement if Wintab position were never trusted while processing this event. */ | ||||
| if (!mouseMoveHandled) { | if (!mouseMoveHandled) { | ||||
| DWORD pos = GetMessagePos(); | DWORD pos = GetMessagePos(); | ||||
| int x = GET_X_LPARAM(pos); | int x = GET_X_LPARAM(pos); | ||||
| int y = GET_Y_LPARAM(pos); | int y = GET_Y_LPARAM(pos); | ||||
| GHOST_TabletData td = wt->getLastTabletData(); | |||||
| /* TODO supply tablet data */ | |||||
| system->pushEvent(new GHOST_EventCursor( | system->pushEvent(new GHOST_EventCursor( | ||||
| system->getMilliSeconds(), GHOST_kEventCursorMove, window, x, y, GHOST_TABLET_DATA_NONE)); | system->getMilliSeconds(), GHOST_kEventCursorMove, window, x, y, td)); | ||||
| } | } | ||||
| } | } | ||||
| void GHOST_SystemWin32::processPointerEvent( | void GHOST_SystemWin32::processPointerEvent( | ||||
| UINT type, GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam, bool &eventHandled) | UINT type, GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam, bool &eventHandled) | ||||
| { | { | ||||
| /* Pointer events might fire when changing windows for a device which is set to use Wintab, | /* Pointer events might fire when changing windows for a device which is set to use Wintab, | ||||
| * even when Wintab is left enabled but set to the bottom of Wintab overlap order. */ | * even when Wintab is left enabled but set to the bottom of Wintab overlap order. */ | ||||
| ▲ Show 20 Lines • Show All 450 Lines • ▼ Show 20 Lines | #ifdef WITH_INPUT_IME | ||||
| if (wParam == IMN_SETOPENSTATUS || wParam == IMN_SETCONVERSIONMODE) { | if (wParam == IMN_SETOPENSTATUS || wParam == IMN_SETCONVERSIONMODE) { | ||||
| window->getImeInput()->UpdateConversionStatus(hwnd); | window->getImeInput()->UpdateConversionStatus(hwnd); | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case WM_IME_SETCONTEXT: { | case WM_IME_SETCONTEXT: { | ||||
| GHOST_ImeWin32 *ime = window->getImeInput(); | GHOST_ImeWin32 *ime = window->getImeInput(); | ||||
| ime->UpdateInputLanguage(); | ime->UpdateInputLanguage(); | ||||
| ime->UpdateConversionStatus(hwnd); | |||||
| ime->CreateImeWindow(hwnd); | ime->CreateImeWindow(hwnd); | ||||
| ime->CleanupComposition(hwnd); | ime->CleanupComposition(hwnd); | ||||
| ime->CheckFirst(hwnd); | ime->CheckFirst(hwnd); | ||||
| break; | break; | ||||
| } | } | ||||
| case WM_IME_STARTCOMPOSITION: { | case WM_IME_STARTCOMPOSITION: { | ||||
| GHOST_ImeWin32 *ime = window->getImeInput(); | GHOST_ImeWin32 *ime = window->getImeInput(); | ||||
| eventHandled = true; | eventHandled = true; | ||||
| ▲ Show 20 Lines • Show All 770 Lines • Show Last 20 Lines | |||||