An open API service indexing awesome lists of open source software.

https://github.com/shymega/gamepad_motion

Rust bindings for the GamepadMotionHelpers C++ library.
https://github.com/shymega/gamepad_motion

Last synced: over 1 year ago
JSON representation

Rust bindings for the GamepadMotionHelpers C++ library.

Awesome Lists containing this project

README

          

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