moa/emulator/frontends/pixels/src/lib.rs
transistor d26e80ffaa Refactored pixels web frontend to separate sim run
It will now run the sim on a separate loop powered by setTimeout
instead of trying to do it inline with the frame updating
2022-10-11 14:40:12 -07:00

16 lines
363 B
Rust

mod settings;
mod frontend;
pub use crate::frontend::{PixelsFrontend, LoadSystemFn};
#[cfg(target_arch = "wasm32")]
pub mod web;
#[cfg(target_arch = "wasm32")]
pub use crate::web::{start, create_window, LoadSystemFnHandle};
#[cfg(not(target_arch = "wasm32"))]
pub mod native;
#[cfg(not(target_arch = "wasm32"))]
pub use crate::native::{start, create_window};