pub struct State(pub u32);Expand description
What holds input back now (ANVIL_INPUT_* of state()).
Tuple Fields§
§0: u32Implementations§
Source§impl State
impl State
Sourcepub const OVERLAY_PANEL: u32 = ANVIL_INPUT_OVERLAY_PANEL
pub const OVERLAY_PANEL: u32 = ANVIL_INPUT_OVERLAY_PANEL
Anvil’s panel is open.
Sourcepub const OVERLAY_KEYBOARD: u32 = ANVIL_INPUT_OVERLAY_KEYBOARD
pub const OVERLAY_KEYBOARD: u32 = ANVIL_INPUT_OVERLAY_KEYBOARD
The overlay takes the keyboard.
Sourcepub const OVERLAY_MOUSE: u32 = ANVIL_INPUT_OVERLAY_MOUSE
pub const OVERLAY_MOUSE: u32 = ANVIL_INPUT_OVERLAY_MOUSE
The mouse is over a window of the overlay.
Sourcepub const GAME_SHORTCUT: u32 = ANVIL_INPUT_GAME_SHORTCUT
pub const GAME_SHORTCUT: u32 = ANVIL_INPUT_GAME_SHORTCUT
The game’s shortcut editor waits for a key.
Sourcepub const GAME_UNKNOWN: u32 = ANVIL_INPUT_GAME_UNKNOWN
pub const GAME_UNKNOWN: u32 = ANVIL_INPUT_GAME_UNKNOWN
anvil-game cannot say whether the two above hold.
Sourcepub const fn holds_keys(self) -> bool
pub const fn holds_keys(self) -> bool
Whether keys are held back.
Sourcepub const fn holds_mouse(self) -> bool
pub const fn holds_mouse(self) -> bool
Whether mouse buttons are held back.
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Forget for State
impl Freeze for State
impl Move for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more