#[repr(u8)]pub enum Key {
KeyW = 0,
KeyA = 1,
KeyS = 2,
KeyD = 3,
Shift = 4,
Control = 5,
Space = 6,
}Expand description
TODO: The client can map keys, is it best to handle this only host side? Eventually the wasm should handle the interfaces which means it needs complete access to the keyboard anyways.
Variants§
Trait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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