Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

644 B
Raw Blame
//! Prints what the 3Dconnexion driver reports: `cargo run -p solidcraft-3dx-client --example dump`.
//! The driver sends nothing to a program that is not in an app bundle, so only `DeviceAdded` shows here;
//! use SolidCraft's own `.app` to see the cap move.

fn main() {
    if let Err(error) = solidcraft_3dx_client::start(
        "SolidCraft dump",
        |event| println!("{event:?}"),
        |connected| {
            if let Err(error) = connected {
                eprintln!("{error}");
            }
        },
    ) {
        eprintln!("{error}");
        return;
    }
    std::thread::sleep(std::time::Duration::from_secs(60));
}