ds4-rs 0.1.1

Read Dualshock4 controller data by using hidapi
Documentation
1
2
3
4
5
pub const DATA_BLOCK_BATTERY_LEVEL:usize = 0x0c;

pub fn decode(buf: &[u8]) -> u8 {
    buf[DATA_BLOCK_BATTERY_LEVEL]
}