28 lines
611 B
Rust
28 lines
611 B
Rust
mod gfx;
|
|
mod pad;
|
|
mod touch;
|
|
mod input_signal;
|
|
mod audio;
|
|
pub mod hardware;
|
|
|
|
pub use gfx::Gfx;
|
|
pub use gfx::BlendMode;
|
|
pub use input_signal::InputSignals;
|
|
pub use pad::Pad;
|
|
pub use touch::Touch;
|
|
pub use audio::{Audio, AudioCommand, Channel, LoopMode, MAX_CHANNELS, OUTPUT_SAMPLE_RATE};
|
|
|
|
pub trait HardwareBridge {
|
|
fn gfx(&self) -> &Gfx;
|
|
fn gfx_mut(&mut self) -> &mut Gfx;
|
|
|
|
fn audio(&self) -> &Audio;
|
|
fn audio_mut(&mut self) -> &mut Audio;
|
|
|
|
fn pad(&self) -> &Pad;
|
|
fn pad_mut(&mut self) -> &mut Pad;
|
|
|
|
fn touch(&self) -> &Touch;
|
|
fn touch_mut(&mut self) -> &mut Touch;
|
|
}
|