diff --git a/src/input.h b/src/input.h index 19693eef03724..b6810ee2b4206 100644 --- a/src/input.h +++ b/src/input.h @@ -271,7 +271,7 @@ class input_manager void wait_for_any_key(); /** - * Sets global input polling timeout as appropriate for the current interface system. + * Sets global input polling timeout in milliseconds as appropriate for the current interface system. * Use `input_context::(re)set_timeout()` when possible so timeout will be properly * reset when entering a new input context. */ diff --git a/src/input_context.h b/src/input_context.h index 043560b0400d4..1d374ebd8e88a 100644 --- a/src/input_context.h +++ b/src/input_context.h @@ -267,6 +267,7 @@ class input_context * * If the action is mouse input, returns "MOUSE". * + * @param timeout in milliseconds. * @return One of the input actions formerly registered with * `register_action()`, or "ERROR" if an error happened. * diff --git a/src/main_menu.cpp b/src/main_menu.cpp index 7645cd5be1bb7..013f6e26b3d57 100644 --- a/src/main_menu.cpp +++ b/src/main_menu.cpp @@ -108,7 +108,7 @@ void demo_ui::run() while( is_open ) { ui_manager::redraw(); - action = ctxt.handle_input(); + action = ctxt.handle_input( 5 ); if( action == "QUIT" ) { break; }