Skip to content

Commit

Permalink
Merge pull request #12 from darkxex/master
Browse files Browse the repository at this point in the history
fixes bug where you lose window focus if you press the touch screen, with touch control disabled.
  • Loading branch information
darkxex authored Feb 6, 2022
2 parents 0710dc8 + 7a07f09 commit 8b5c79a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ namespace GUI {
TOUCHCONTROLS::fingerUp(&event);

}
else if(event.type == SDL_FINGERUP && !configini->getTouchEnable(false))
{ printf("New Focus witch Touch Disabled.\n");
ImGui::SetNextWindowFocus();
}

if(event.type == SDL_JOYAXISMOTION){
if( event.jaxis.axis == 3 ) {
Expand Down

0 comments on commit 8b5c79a

Please sign in to comment.