|
|
|
@ -124,7 +124,7 @@ static bool ImGui_ImplSDL2_Init(SDL_Window* window)
|
|
|
|
|
ImGuiIO& io = ImGui::GetIO();
|
|
|
|
|
io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional)
|
|
|
|
|
io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used)
|
|
|
|
|
io.BackendPlatformName = "imgui_impl_sdl"
|
|
|
|
|
io.BackendPlatformName = "imgui_impl_sdl";
|
|
|
|
|
|
|
|
|
|
// Keyboard mapping. ImGui will use those indices to peek into the io.KeysDown[] array.
|
|
|
|
|
io.KeyMap[ImGuiKey_Tab] = SDL_SCANCODE_TAB;
|
|
|
|
|