aboutsummaryrefslogtreecommitdiff
path: root/src/input/resources.rs
blob: f8b9032ffb15dfc1b609a944aa8cae54d278f61f (plain)
1
2
3
4
5
6
7
use bevy::prelude::*;
use crossterm::event::Event;
use std::sync::{Arc, Mutex};

/// Event queue for crossterm input event thread
#[derive(Resource, Default)]
pub(crate) struct EventQueue(pub(super) Arc<Mutex<Vec<Event>>>);