Struct tiny_game_framework::EventHandler
source · pub struct EventHandler {
pub keys_pressed: HashMap<Key, usize>,
}
Fields§
§keys_pressed: HashMap<Key, usize>
Implementations§
source§impl EventHandler
impl EventHandler
pub fn new() -> Self
pub fn on_key_press(&mut self, key: Key)
pub fn on_key_release(&mut self, key: Key)
pub fn on_mouse_move(&mut self)
Auto Trait Implementations§
impl Freeze for EventHandler
impl RefUnwindSafe for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Unpin for EventHandler
impl UnwindSafe for EventHandler
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