mod events_sdl;
use rustzx_core::{
zx::{joy::kempston::KempstonKey, keys::ZXKey},
EmulationSpeed,
};
use std::path::PathBuf;
pub use events_sdl::EventsSdl;
pub enum Event {
GameKey(ZXKey, bool),
Kempston(KempstonKey, bool),
SwitchDebug,
ChangeSpeed(EmulationSpeed),
InsertTape,
StopTape,
OpenFile(PathBuf),
Exit,
}
pub trait EventDevice {
fn pop_event(&mut self) -> Option<Event>;
}