git repos / blockattack-game

commit f5353039

Poul Sander · 2025-10-07 22:17
f5353039ca354079e4103a52ba7e9cea95b3a4ef patch · browse files
parent e48b9d407a35e377646ea1f088f39910965d7cc6

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];