mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 11:46:42 +01:00
This commit is contained in:
parent
9fb5d2d9f7
commit
2b208e3c49
11 changed files with 219 additions and 198 deletions
|
|
@ -3,7 +3,14 @@ use std::time::Duration;
|
|||
use std::thread::{spawn, JoinHandle};
|
||||
use crossterm::event::{poll, read};
|
||||
|
||||
#[derive(Debug, Clone)] pub struct TuiIn(pub Arc<AtomicBool>, pub Event);
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct TuiIn(
|
||||
/// Exit flag
|
||||
pub Arc<AtomicBool>,
|
||||
/// Input event
|
||||
pub Event,
|
||||
);
|
||||
|
||||
impl Input for TuiIn {
|
||||
type Event = Event;
|
||||
type Handled = bool;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue