pub enum EventEnum {
Key(KeyInput),
Mouse(MouseInput),
Touch(TouchInput),
Axis(AxisInput),
GamepadButton(GamepadButtonInput),
RawMidi(RawMidiInput),
}Expand description
An input event, such as a key press
Variants§
Key(KeyInput)
A key press
Mouse(MouseInput)
Mouse movement or button press
Touch(TouchInput)
Touch start, move, end
Axis(AxisInput)
Axis events - analog inputs like gamepad sticks
GamepadButton(GamepadButtonInput)
A gamepad button press
RawMidi(RawMidiInput)
A raw MIDI event
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for EventEnum
impl Send for EventEnum
impl Sync for EventEnum
impl Unpin for EventEnum
impl UnwindSafe for EventEnum
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