keyboard input

This commit is contained in:
2024-09-21 19:08:03 +02:00
parent f47f3575de
commit 56d1691397
5 changed files with 85 additions and 64 deletions
+5 -5
View File
@@ -14,16 +14,16 @@ To use `osui` in your Rust project, add the following to your `Cargo.toml`:
```toml
[dependencies]
osui = "^0.0.1"
osui = "^0.0.2"
```
```rust
use osui::{self, ui};
use osui::{self, render_frame, ui};
fn main() {
osui::clear();
let mut txt = ui::text("hello, world!");
txt.render();
let txt = ui::text("Hello World!");
render_frame(vec![txt.clone()]);
}
```