diff --git a/src/connect/mod.rs b/src/connect/mod.rs index 3928b09..c72ca05 100644 --- a/src/connect/mod.rs +++ b/src/connect/mod.rs @@ -1,3 +1,13 @@ -mod renderer; pub use crate::processor::memory::mmio::joypad::JoypadState; -pub use renderer::Renderer; + +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) {} +} diff --git a/src/connect/renderer.rs b/src/connect/renderer.rs deleted file mode 100644 index 3d4e01d..0000000 --- a/src/connect/renderer.rs +++ /dev/null @@ -1,13 +0,0 @@ -use super::JoypadState; - -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) {} -}