Skip to content

shymega/gamepad_motion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rust bindings for the GamepadMotionHelpers C++ library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages