11/*
2- * Copyright 2019-2023 Diligent Graphics LLC
2+ * Copyright 2019-2025 Diligent Graphics LLC
33 * Copyright 2015-2019 Egor Yusov
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
@@ -51,30 +51,6 @@ ImGuiImplUWP::ImGuiImplUWP(const ImGuiDiligentCreateInfo& CI) :
5151 // Setup back-end capabilities flags
5252 ImGuiIO& io = ImGui::GetIO ();
5353 io.BackendPlatformName = " imgui_impl_uwp" ;
54-
55- // Keyboard mapping. ImGui will use those indices to peek into the io.KeysDown[] array that we will update during the application lifetime.
56- io.KeyMap [ImGuiKey_Tab] = VK_TAB;
57- io.KeyMap [ImGuiKey_LeftArrow] = VK_LEFT;
58- io.KeyMap [ImGuiKey_RightArrow] = VK_RIGHT;
59- io.KeyMap [ImGuiKey_UpArrow] = VK_UP;
60- io.KeyMap [ImGuiKey_DownArrow] = VK_DOWN;
61- io.KeyMap [ImGuiKey_PageUp] = VK_PRIOR;
62- io.KeyMap [ImGuiKey_PageDown] = VK_NEXT;
63- io.KeyMap [ImGuiKey_Home] = VK_HOME;
64- io.KeyMap [ImGuiKey_End] = VK_END;
65- io.KeyMap [ImGuiKey_Insert] = VK_INSERT;
66- io.KeyMap [ImGuiKey_Delete] = VK_DELETE;
67- io.KeyMap [ImGuiKey_Backspace] = VK_BACK;
68- io.KeyMap [ImGuiKey_Space] = VK_SPACE;
69- io.KeyMap [ImGuiKey_Enter] = VK_RETURN;
70- io.KeyMap [ImGuiKey_Escape] = VK_ESCAPE;
71- io.KeyMap [ImGuiKey_KeyPadEnter] = VK_RETURN;
72- io.KeyMap [ImGuiKey_A] = ' A' ;
73- io.KeyMap [ImGuiKey_C] = ' C' ;
74- io.KeyMap [ImGuiKey_V] = ' V' ;
75- io.KeyMap [ImGuiKey_X] = ' X' ;
76- io.KeyMap [ImGuiKey_Y] = ' Y' ;
77- io.KeyMap [ImGuiKey_Z] = ' Z' ;
7854}
7955
8056ImGuiImplUWP::~ImGuiImplUWP ()
@@ -86,7 +62,6 @@ void ImGuiImplUWP::NewFrame(Uint32 RenderSurfaceWidth,
8662 SURFACE_TRANSFORM SurfacePreTransform)
8763{
8864 ImGuiIO& io = ImGui::GetIO ();
89- IM_ASSERT (io.Fonts ->IsBuilt () && " Font atlas not built! It is generally built by the renderer back-end. Missing call to renderer _NewFrame() function? e.g. ImGui_ImplOpenGL3_NewFrame()." );
9065
9166 io.DisplaySize = ImVec2 (static_cast <float >(RenderSurfaceWidth), static_cast <float >(RenderSurfaceHeight));
9267
0 commit comments