pub enum InputMode {
TileMap,
FreeCamera,
UiFocus,
Cinematic,
}Expand description
Input mode determines which bindings and camera behavior are active.
Variants§
TileMap
2D tile-based: WASD moves on grid, scroll zooms, no rotation.
FreeCamera
3D free camera: WASD moves in camera-relative direction, mouse rotates.
UiFocus
UI focus: keyboard goes to text fields/menus, movement suppressed.
Cinematic
Cinematic: input suppressed, camera follows scripted path.
Implementations§
Source§impl InputMode
impl InputMode
Sourcepub fn movement_enabled(&self) -> bool
pub fn movement_enabled(&self) -> bool
Whether WASD movement keys should produce movement actions.
Sourcepub fn camera_rotation_enabled(&self) -> bool
pub fn camera_rotation_enabled(&self) -> bool
Whether mouse/stick rotation should produce camera rotation.
Sourcepub fn ui_capture(&self) -> bool
pub fn ui_capture(&self) -> bool
Whether keyboard input should be routed to UI text fields.
Trait Implementations§
impl Copy for InputMode
impl Eq for InputMode
impl StructuralPartialEq for InputMode
Auto Trait Implementations§
impl Freeze for InputMode
impl RefUnwindSafe for InputMode
impl Send for InputMode
impl Sync for InputMode
impl Unpin for InputMode
impl UnsafeUnpin 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