pub struct FrameState {
pub pressed_keys: Vec<String>,
pub mouse_state: MouseState,
}
Expand description
Contains the input state for the current frame.
Fields§
§pressed_keys: Vec<String>
Provides the keycodes the same way as MDN Web Docs’ KeyboardEvent.code does
mouse_state: MouseState
Contains the state of the mouse in the current frame
Auto Trait Implementations§
impl Freeze for FrameState
impl RefUnwindSafe for FrameState
impl Send for FrameState
impl Sync for FrameState
impl Unpin for FrameState
impl UnwindSafe for FrameState
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