gamepad_motion

Crates.iogamepad_motion
lib.rsgamepad_motion
version0.1.2
sourcesrc
created_at2023-10-26 15:52:08.575572
updated_at2023-10-27 02:08:27.45682
descriptionRust bindings for the GamepadMotionHelpers C++ library.
homepage
repositoryhttps://gitlab.com/awahab/gamepad_motion
max_upload_size
id1014671
size65,241
(ajwahab)

documentation

README

gamepad_motion

Rust bindings for the GamepadMotionHelpers C++ library.

Usage

use gamepad_motion::GamepadMotion;

let mut gm = GamepadMotion::new();
loop {
	// read gyro, accelerometer, elapsed time...
	xy = gm.process(g, a, dt).gyro_player_space(None);
	// update position using xy...
}
Commit count: 9

cargo fmt