mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 17:37:22 +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.reserve_key(key, action);
|
||||||
|
|
||||||
|
self.important_actions
|
||||||
|
.push(format!("Press {} to {}", key.describe(), action));
|
||||||
|
|
||||||
if self.event_consumed {
|
if self.event_consumed {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -166,8 +169,6 @@ impl UserInput {
|
|||||||
self.consume_event();
|
self.consume_event();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
self.important_actions
|
|
||||||
.push(format!("Press {} to {}", key.describe(), action));
|
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user