Module bottomless_pit::input
source · Expand description
Contains Both the MouseKey and Key Enums for input
impl Game For Struct {
fn update(&mut self, engine_handle: &mut Engine) {
if engine_handle.is_key_down(Key::W) {
// do something
}
if engine_handle.is_mouse_key_down(MouseKey::Left) {
// do more things
}
}
}Enums
- Representation of keyboard keys
- Representation of mouse buttons