dualsense-tools 0.2.0

Tools to interact with the Dualsense PS5 controller
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::Tilt;

/// Represents current estimates on the tilt status of a controller
#[derive(Copy, Clone, Debug, Default, PartialEq)]
pub struct TiltEstimates {
    /// Estimated only using the accelerometer average
    pub accel_avg: Tilt,
    /// Estimated only using last accelerometer reading
    pub accel_instant: Tilt,
    /// Estimated only using last gyro reading
    pub gyro_instant: Tilt,
    /// Estimated tilt using gyro+accelerometer fusion
    pub accel_corrected_gyro: Tilt,
}