commit f5353039
Remove double call to ImGui_ImplSDL2_ProcessEvent
Changed files
| M | source/code/editor/SagoTextureSelector.cpp before |
| M | source/code/puzzle_editor/PuzzleEditorState.cpp before |
diff --git a/source/code/editor/SagoTextureSelector.cpp b/source/code/editor/SagoTextureSelector.cpp
index 51643d0..308ebb2 100644
--- a/source/code/editor/SagoTextureSelector.cpp
+++ b/source/code/editor/SagoTextureSelector.cpp
@@ -237,7 +237,6 @@ bool SagoTextureSelector::IsActive() {
}
void SagoTextureSelector::ProcessInput(const SDL_Event& event, bool &processed) {
- ImGui_ImplSDL2_ProcessEvent(&event);
}
void SagoTextureSelector::Draw(SDL_Renderer* target) {
diff --git a/source/code/puzzle_editor/PuzzleEditorState.cpp b/source/code/puzzle_editor/PuzzleEditorState.cpp
index 7f31c0b..e77f6df 100644
--- a/source/code/puzzle_editor/PuzzleEditorState.cpp
+++ b/source/code/puzzle_editor/PuzzleEditorState.cpp
@@ -45,8 +45,6 @@ bool PuzzleEditorState::IsActive() {
}
void PuzzleEditorState::ProcessInput(const SDL_Event& event, bool& processed) {
- ImGui_ImplSDL2_ProcessEvent(&event);
-
if (event.type == SDL_KEYDOWN && !read_only) {
const Uint8* keystate = SDL_GetKeyboardState(nullptr);
const bool ctrl_held = keystate[SDL_SCANCODE_LCTRL] || keystate[SDL_SCANCODE_RCTRL];