3 releases
0.1.2 | Oct 27, 2023 |
---|---|
0.1.1 | Oct 26, 2023 |
0.1.0 | Oct 26, 2023 |
#1910 in Hardware support
Used in aimu
18KB
187 lines
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...
}
Dependencies
~2.7–7.5MB
~137K SLoC