gamepad_motion 0.1.1

Rust bindings for the GamepadMotionHelpers C++ library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# gamepad_motion

Rust bindings for the [GamepadMotionHelpers](https://github.com/JibbSmart/GamepadMotionHelpers/tree/main) C++ library.

## Usage
```rust
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...
}
```