mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Backends: Fixed zealous warnings.
This commit is contained in:
parent
39585aa90d
commit
51e4cba909
2 changed files with 2 additions and 1 deletions
|
|
@ -192,7 +192,6 @@ static void ImGui_ImplSDL2_PlatformSetImeData(ImGuiContext*, ImGuiViewport*, ImG
|
||||||
ImGuiKey ImGui_ImplSDL2_KeyEventToImGuiKey(SDL_Keycode keycode, SDL_Scancode scancode);
|
ImGuiKey ImGui_ImplSDL2_KeyEventToImGuiKey(SDL_Keycode keycode, SDL_Scancode scancode);
|
||||||
ImGuiKey ImGui_ImplSDL2_KeyEventToImGuiKey(SDL_Keycode keycode, SDL_Scancode scancode)
|
ImGuiKey ImGui_ImplSDL2_KeyEventToImGuiKey(SDL_Keycode keycode, SDL_Scancode scancode)
|
||||||
{
|
{
|
||||||
IM_UNUSED(scancode);
|
|
||||||
switch (keycode)
|
switch (keycode)
|
||||||
{
|
{
|
||||||
case SDLK_TAB: return ImGuiKey_Tab;
|
case SDLK_TAB: return ImGuiKey_Tab;
|
||||||
|
|
@ -332,6 +331,7 @@ ImGuiKey ImGui_ImplSDL2_KeyEventToImGuiKey(SDL_Keycode keycode, SDL_Scancode sca
|
||||||
case SDL_SCANCODE_COMMA: return ImGuiKey_Comma;
|
case SDL_SCANCODE_COMMA: return ImGuiKey_Comma;
|
||||||
case SDL_SCANCODE_PERIOD: return ImGuiKey_Period;
|
case SDL_SCANCODE_PERIOD: return ImGuiKey_Period;
|
||||||
case SDL_SCANCODE_SLASH: return ImGuiKey_Slash;
|
case SDL_SCANCODE_SLASH: return ImGuiKey_Slash;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
return ImGuiKey_None;
|
return ImGuiKey_None;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -313,6 +313,7 @@ ImGuiKey ImGui_ImplSDL3_KeyEventToImGuiKey(SDL_Keycode keycode, SDL_Scancode sca
|
||||||
case SDL_SCANCODE_COMMA: return ImGuiKey_Comma;
|
case SDL_SCANCODE_COMMA: return ImGuiKey_Comma;
|
||||||
case SDL_SCANCODE_PERIOD: return ImGuiKey_Period;
|
case SDL_SCANCODE_PERIOD: return ImGuiKey_Period;
|
||||||
case SDL_SCANCODE_SLASH: return ImGuiKey_Slash;
|
case SDL_SCANCODE_SLASH: return ImGuiKey_Slash;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
return ImGuiKey_None;
|
return ImGuiKey_None;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue