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.
- Host: GitHub
- URL: https://github.com/shymega/gamepad_motion
- Owner: shymega
- License: mit
- Created: 2024-08-03T15:40:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-03T22:09:27.000Z (almost 2 years ago)
- Last Synced: 2025-03-27T22:38:52.906Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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...
}
```