dualsense-tools 0.3.0

Tools to interact with the Dualsense PS5 controller
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::time::Instant;

#[derive(Clone, Copy, Debug)]
pub struct Timestamped<A> {
    pub value: A,
    pub timestamp: Instant,
}

impl<A> Timestamped<A> {
    pub fn new(value: A) -> Timestamped<A> {
        Timestamped {
            value,
            timestamp: Instant::now(),
        }
    }
}