| Crates.io | bevy_stdin |
| lib.rs | bevy_stdin |
| version | 0.3.0 |
| created_at | 2025-07-17 03:53:08.512334+00 |
| updated_at | 2025-07-18 01:57:39.448168+00 |
| description | Receive input from stdin |
| homepage | |
| repository | https://github.com/scurvydoggo/bevy_stdin |
| max_upload_size | |
| id | 1757046 |
| size | 145,165 |
Terminal input for the Bevy game engine, using crossterm for cross-platform support.
Input is exposed via resources: ButtonInput<KeyCode> and ButtonInput<KeyModifiers>.
use bevy::prelude::*;
use crossterm::event::{KeyCode, KeyModifiers};
fn terminal_system(
key: Res<ButtonInput<KeyCode>>,
modifiers: Res<ButtonInput<KeyModifiers>>,
) {
if modifiers.justPressed(KeyModifiers::CONTROL) && key.justPressed(KeyCode::Char('a')) {
}
}