mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
dont flicker with turn cycler OSD action; put important actions in the OSD even if that key was chosen
This commit is contained in:
parent
25d38adf27
commit
b76eaa8021
@ -158,6 +158,9 @@ impl UserInput {
|
||||
|
||||
self.reserve_key(key, action);
|
||||
|
||||
self.important_actions
|
||||
.push(format!("Press {} to {}", key.describe(), action));
|
||||
|
||||
if self.event_consumed {
|
||||
return false;
|
||||
}
|
||||
@ -166,8 +169,6 @@ impl UserInput {
|
||||
self.consume_event();
|
||||
return true;
|
||||
}
|
||||
self.important_actions
|
||||
.push(format!("Press {} to {}", key.describe(), action));
|
||||
false
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user