refactor: handle pausing within game, reduce input system allocations

This commit is contained in:
2025-08-14 10:36:39 -05:00
parent b7429cd9ec
commit 2f1ff85d8f
5 changed files with 47 additions and 42 deletions

View File

@@ -2,11 +2,11 @@ use crate::input::commands::GameCommand;
#[derive(Debug, Clone, Copy)]
pub enum GameEvent {
InputCommand(GameCommand),
Command(GameCommand),
}
impl From<GameCommand> for GameEvent {
fn from(command: GameCommand) -> Self {
GameEvent::InputCommand(command)
GameEvent::Command(command)
}
}