- fully implemented dialogs

- added a scroll feature to grapher.rs
- fixed the cosine implementation as it was incorrect before.
This commit is contained in:
FantasyPvP
2024-03-21 21:51:00 +00:00
parent 6505d219de
commit 5c6ec299ee
6 changed files with 222 additions and 134 deletions
+4
View File
@@ -48,6 +48,8 @@ pub enum KeyStroke {
Backspace,
Left,
Right,
Up,
Down,
None,
Enter
}
@@ -66,6 +68,8 @@ impl KeyStroke {
KeyCode::Backspace => KeyStroke::Backspace,
KeyCode::ArrowLeft => KeyStroke::Left,
KeyCode::ArrowRight => KeyStroke::Right,
KeyCode::ArrowUp => KeyStroke::Up,
KeyCode::ArrowDown => KeyStroke::Down,
KeyCode::Enter => KeyStroke::Enter,
_ => KeyStroke::None,
}