magma_input

Crates.iomagma_input
lib.rsmagma_input
version0.1.0-alpha.2
created_at2025-07-21 17:18:25.911534+00
updated_at2025-08-21 18:40:57.729741+00
descriptionPart of the Magma-API, which is the API of the Magma3D game engine. This is responsable for handling user input.
homepagehttps://dynamicgoose.github.io/magma3d-engine/
repositoryhttps://codeberg.com/DynamicGoose/magma-api
max_upload_size
id1762281
size32,965
Géza Ahsendorf (DynamicGoose)

documentation

README

magma_input

This crate handles user input for the Magma3D engine.

Features

  • Keyboard & Mouse
  • Gamepad
  • Touch
  • VR Controls

Usage

This crate should be used together with the rest of the magma_api.

Add this to your Cargo.toml:

[dependencies]
magma_input = "0.1.0-alpha.2"

Example (with magma_api)

use magma_api::App;
use magma_api::magma_input::InputModule;

fn main() {
    let mut app = App::new();
    // Add the input module
    app.add_module(InputModule);
    // run the app
    app.run();
}

Note that the InputModule alone only provides the interface for input management. The backend is implemented in magma_winit.

Cargo Features

currently no features

Disclaimer

This crate is not production ready.

Commit count: 0

cargo fmt