Trait EventCode
joydev::event_codes
pub trait EventCode<T> where Self: Clone + Copy + Debug + Default + Eq + Hash + Sized, T: EventCodeValue, { const COUNT: T; const MAX: T; fn iter() -> IntoIter<Self, T> { ... } }
Trait common to all event codes
const COUNT: T
Code count
const MAX: T
Maximum value
fn iter() -> IntoIter<Self, T>
Return the default event code iterator
impl EventCode<u16> for Key
const COUNT: u16
const MAX: u16
impl EventCode<u8> for AbsoluteAxis
const COUNT: u8
const MAX: u8