gamepad_motion 0.1.2

Rust bindings for the GamepadMotionHelpers C++ library.
Documentation

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...
}