key binding lookup, ai vehicle activation delay

This commit is contained in:
tmj-fstate
2020-02-23 03:43:05 +01:00
parent fcc8460d88
commit 4e9eabbcfe
12 changed files with 73 additions and 28 deletions

View File

@@ -47,8 +47,10 @@ driver_ui::driver_ui() {
bool
driver_ui::on_key_( int const Key, int const Scancode, int const Action, int const Mods ) {
// if the pause is on ignore block other input
if( m_paused ) { return true; }
if( m_paused ) {
// if the pause is on block input except for the pause key which we let the owner deal with
return ( Key != Application.key_binding( user_command::pausetoggle ) );
}
switch( Key ) {