Crates.io | gamepad_motion |
lib.rs | gamepad_motion |
version | 0.1.2 |
source | src |
created_at | 2023-10-26 15:52:08.575572 |
updated_at | 2023-10-27 02:08:27.45682 |
description | Rust bindings for the GamepadMotionHelpers C++ library. |
homepage | |
repository | https://gitlab.com/awahab/gamepad_motion |
max_upload_size | |
id | 1014671 |
size | 65,241 |
Rust bindings for the GamepadMotionHelpers C++ library.
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...
}