use super::*;
#[derive(Clone, Copy, Data, Debug, Default, Eq, Hash, PartialEq)]
pub struct KeyBitset {
#[get(type(copy))]
pub(crate) words: [u64; 4],
}
#[derive(Clone, Copy, Data, Debug, Default, Eq, Hash, PartialEq)]
pub struct ButtonBitset {
#[get(type(copy))]
pub(crate) mask: u16,
}
#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
pub struct InputState {
#[new(skip)]
#[get(type(copy))]
pub(crate) keys_down: KeyBitset,
#[new(skip)]
#[get(type(copy))]
pub(crate) keys_just_pressed: KeyBitset,
#[new(skip)]
#[get(type(copy))]
pub(crate) keys_just_released: KeyBitset,
#[new(skip)]
#[get(type(copy))]
pub(crate) buttons_down: ButtonBitset,
#[new(skip)]
#[get(type(copy))]
pub(crate) buttons_just_pressed: ButtonBitset,
#[new(skip)]
#[get(type(copy))]
pub(crate) buttons_just_released: ButtonBitset,
#[new(skip)]
#[get(type(copy))]
pub(crate) pointer_position: Point,
#[new(skip)]
#[get(type(copy))]
pub(crate) pointer_delta: Point,
#[new(skip)]
#[get(type(copy))]
pub(crate) scroll_delta: Point,
#[new(skip)]
#[get(type(copy))]
pub(crate) virtual_axis: Point,
#[new(skip)]
#[get(type(copy))]
pub(crate) virtual_fire: bool,
#[new(skip)]
#[get(type(copy))]
pub(crate) virtual_dash: bool,
#[new(skip)]
#[get(type(copy))]
pub(crate) modifiers: Modifiers,
}
#[derive(Clone, Data, Debug)]
pub struct ActionMap {
pub(crate) key_bindings: HashMap<GameAction, Vec<KeyCode>>,
pub(crate) button_bindings: HashMap<GameAction, Vec<PointerButton>>,
}