2023-02-26 11:56:45 +11:00
|
|
|
pub use crate::processor::memory::mmio::joypad::JoypadState;
|
2023-03-02 10:20:50 +11:00
|
|
|
|
2023-03-02 11:29:54 +11:00
|
|
|
pub enum EmulatorMessage {
|
|
|
|
Stop,
|
|
|
|
}
|
|
|
|
|
2023-03-02 10:20:50 +11:00
|
|
|
pub trait Renderer {
|
|
|
|
fn prepare(&mut self, width: usize, height: usize);
|
|
|
|
|
|
|
|
fn display(&mut self, buffer: &[u32]);
|
|
|
|
|
|
|
|
fn set_title(&mut self, _title: String) {}
|
|
|
|
|
|
|
|
fn latest_joypad_state(&mut self) -> JoypadState;
|
|
|
|
|
|
|
|
fn set_rumble(&mut self, _rumbling: bool) {}
|
|
|
|
}
|