pub enum InputMode {
Exclusive,
UI,
Unified,
}Variants§
Exclusive
Indicates that any keyboard, mouse or gamepad input should be captured by the input management system, no raw input events should be passed to the game implementation, and the cursor should be hidden.
UI
Indicates that any keyboard, mouse or gamepad input should not be captured by the input management system, all raw input events should be passed to the game implementation, and the cursor should be shown.
Unified
Indicates that keyboard, mouse or gamepad input should be captured both by the input management system, and raw input events should be passed to the game implementation, and the cursor should be shown.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InputMode
impl Send for InputMode
impl Sync for InputMode
impl Unpin for InputMode
impl UnwindSafe for InputMode
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