use bytemuck::{Pod, Zeroable};
#[derive(Clone, Copy, Debug)]
#[derive(Default, Pod, Zeroable)]
#[repr(C)] pub struct Vibration {
pub left_motor_speed: u16,
pub right_motor_speed: u16,
}
test_layout! {
Vibration => winapi::um::xinput::XINPUT_VIBRATION {
left_motor_speed => wLeftMotorSpeed,
right_motor_speed => wRightMotorSpeed,
}
}
#[test] fn test_traits_for_coverage() {
let _vibration = Vibration::default();
let _vibration = Vibration::zeroed();
let _vibration = _vibration.clone();
dbg!(_vibration);
}