Backout previous changelist.

This commit is contained in:
Justin Marshall
2020-07-02 13:00:07 -07:00
parent f1b5269d73
commit b33c844d3c
+5 -10
View File
@@ -61,16 +61,6 @@ void UserInputClass::Process_Input(KeyNumType& key, int& flags)
while (SDL_PollEvent(&event)) {
const Uint8* state = SDL_GetKeyboardState(NULL);
if (Debug_Map || renderConsole)
{
// If Imgui has processed a KEYDOWN or MOUSEDOWN event, then we are going to ignore it.
if(ImGui_ImplSDL2_ProcessEvent(&event)) {
if(event.type == SDL_MOUSEBUTTONDOWN || event.type == SDL_KEYDOWN) {
continue;
}
}
}
switch (event.type)
{
case SDL_SYSWMEVENT:
@@ -226,6 +216,11 @@ void UserInputClass::Process_Input(KeyNumType& key, int& flags)
KeyB.ASCII = (char)event.text.text[0];
}
}
if (Debug_Map || renderConsole)
{
ImGui_ImplSDL2_ProcessEvent(&event);
}
}
if (!leftMouseProcessed && numFramesLMouse != 0)