Skip to content

Commit

Permalink
Added a 50 ms input timeout to avoid inputs piling up in ImGui's queue.
Browse files Browse the repository at this point in the history
  • Loading branch information
katemonster33 committed Feb 13, 2024
1 parent add483a commit ce694a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/input_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,9 @@ action_id input_context::display_menu( const bool permit_execute_action )
// avoiding inception!
ctxt.register_action( "HELP_KEYBINDINGS" );
}

#if defined(WIN32) || defined(TILES)
ctxt.set_timeout(50);
#endif

// has the user changed something?
bool changed = false;
Expand Down

0 comments on commit ce694a4

Please sign in to comment.