mirror of
https://github.com/ocornut/imgui.git
synced 2026-09-27 19:43:36 +03:00
Platform IME: changed io.ImeSetInputScreenPosFn() to io.SetPlatformImeDataFn() API.
Ref #2589, #2598, #3108, #3113, #3653, #4642
This commit is contained in:
parent
04bc0b0bb8
commit
3a90dc3893
7 changed files with 68 additions and 26 deletions
|
|
@ -122,7 +122,8 @@ bool ImGui_ImplWin32_Init(void* hwnd)
|
|||
bd->Time = perf_counter;
|
||||
bd->LastMouseCursor = ImGuiMouseCursor_COUNT;
|
||||
|
||||
io.ImeWindowHandle = hwnd;
|
||||
// Set platform dependent data in viewport
|
||||
ImGui::GetMainViewport()->PlatformHandleRaw = (void*)hwnd;
|
||||
|
||||
// Keyboard mapping. Dear ImGui will use those indices to peek into the io.KeysDown[] array that we will update during the application lifetime.
|
||||
io.KeyMap[ImGuiKey_Tab] = VK_TAB;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue