tui logger w/ patched bevy_ratatui
This commit is contained in:
parent
3fb03cfbcb
commit
78029687d7
10 changed files with 885 additions and 162 deletions
|
|
@ -1,11 +1,22 @@
|
|||
// use bevy::ecs::message::MessageReader;
|
||||
use bevy::app::AppExit;
|
||||
use bevy::input::keyboard::Key;
|
||||
use bevy::input::keyboard::{Key, KeyboardInput};
|
||||
use bevy::prelude::*;
|
||||
use bevy_ratatui::crossterm::event::KeyCode;
|
||||
|
||||
use crate::tui::console::ConsoleState;
|
||||
|
||||
pub(crate) fn keyboard_input_system(
|
||||
input: Option<Res<ButtonInput<KeyCode>>>,
|
||||
key_input: Option<Res<ButtonInput<Key>>>,
|
||||
// keycode_input: Option<Res<ButtonInput<KeyCode>>>,
|
||||
// key_input: Option<Res<ButtonInput<Key>>>,
|
||||
// mut next_state: ResMut<State<TuiState>>,
|
||||
mut keyboard_events: MessageReader<KeyboardInput>,
|
||||
) {
|
||||
// if let Some(keycode_input) = keycode_input {
|
||||
// if keycode_input.just_pressed(KeyCode::Backquote) {
|
||||
// // console_state.set;
|
||||
// }
|
||||
// }
|
||||
for keyboard_input in keyboard_events.read() {
|
||||
trace!("{:?}", keyboard_input);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue