use bytemuck::{Pod, Zeroable};
use winapi::um::xinput::*;
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[derive(Pod, Zeroable)]
#[repr(transparent)] pub struct KeystrokeFlags(u16);
use KeystrokeFlags as Keystroke;
flags! { Keystroke => u16; None, KeyDown, KeyUp, Repeat }
#[allow(non_upper_case_globals)] impl KeystrokeFlags {
pub const None : Keystroke = Keystroke(0);
pub const KeyDown : Keystroke = Keystroke(XINPUT_KEYSTROKE_KEYDOWN);
pub const KeyUp : Keystroke = Keystroke(XINPUT_KEYSTROKE_KEYUP);
pub const Repeat : Keystroke = Keystroke(XINPUT_KEYSTROKE_REPEAT);
}
#[allow(non_upper_case_globals)] impl crate::Keystroke {
pub const None : Keystroke = Keystroke(0);
pub const KeyDown : Keystroke = Keystroke(XINPUT_KEYSTROKE_KEYDOWN);
pub const KeyUp : Keystroke = Keystroke(XINPUT_KEYSTROKE_KEYUP);
pub const Repeat : Keystroke = Keystroke(XINPUT_KEYSTROKE_REPEAT);
}