v1.0.2: arrow keys, start menu paging support
key press convenience methods, fix logo, docs, add more chars
This commit is contained in:
@@ -54,6 +54,7 @@ impl WindowLike for Minesweeper {
|
||||
self.random_chars = String::new();
|
||||
self.state = State::BeforePlaying;
|
||||
} else {
|
||||
//since must be u8, the Linear A (enter, backspace, etc) stuff won't do anything
|
||||
if u8::try_from(key_press.key).is_ok() {
|
||||
self.random_chars.push(key_press.key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user