pub enum Event {
Show 17 variants
NoEvent,
DisplayClose {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
},
DisplayResize {
source: *mut ALLEGRO_EVENT_SOURCE,
x: i32,
y: i32,
width: i32,
height: i32,
timestamp: f64,
},
JoystickAxes {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
id: *mut ALLEGRO_JOYSTICK,
stick: i32,
axis: i32,
pos: f32,
},
JoystickButtonDown {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
id: *mut ALLEGRO_JOYSTICK,
button: i32,
},
JoystickButtonUp {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
id: *mut ALLEGRO_JOYSTICK,
button: i32,
},
JoystickConfiguration {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
},
KeyDown {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
keycode: KeyCode,
display: *mut ALLEGRO_DISPLAY,
},
KeyUp {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
keycode: KeyCode,
display: *mut ALLEGRO_DISPLAY,
},
KeyChar {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
keycode: KeyCode,
display: *mut ALLEGRO_DISPLAY,
unichar: char,
repeat: bool,
modifiers: KeyModifier,
},
MouseAxes {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
x: i32,
y: i32,
z: i32,
w: i32,
dx: i32,
dy: i32,
dz: i32,
dw: i32,
display: *mut ALLEGRO_DISPLAY,
},
MouseButtonDown {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
x: i32,
y: i32,
z: i32,
w: i32,
button: u32,
display: *mut ALLEGRO_DISPLAY,
},
MouseButtonUp {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
x: i32,
y: i32,
z: i32,
w: i32,
button: u32,
display: *mut ALLEGRO_DISPLAY,
},
MouseWarped {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
x: i32,
y: i32,
z: i32,
w: i32,
dx: i32,
dy: i32,
dz: i32,
dw: i32,
display: *mut ALLEGRO_DISPLAY,
},
MouseEnterDisplay {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
x: i32,
y: i32,
z: i32,
w: i32,
display: *mut ALLEGRO_DISPLAY,
},
MouseLeaveDisplay {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
x: i32,
y: i32,
z: i32,
w: i32,
display: *mut ALLEGRO_DISPLAY,
},
TimerTick {
source: *mut ALLEGRO_EVENT_SOURCE,
timestamp: f64,
count: i64,
},
}
Variants
NoEvent
DisplayClose
DisplayResize
JoystickAxes
Fields
source: *mut ALLEGRO_EVENT_SOURCE
timestamp: f64
id: *mut ALLEGRO_JOYSTICK
stick: i32
axis: i32
pos: f32
JoystickButtonDown
JoystickButtonUp
JoystickConfiguration
KeyDown
KeyUp
KeyChar
Fields
source: *mut ALLEGRO_EVENT_SOURCE
timestamp: f64
keycode: KeyCode
display: *mut ALLEGRO_DISPLAY
unichar: char
repeat: bool
modifiers: KeyModifier
MouseAxes
Fields
source: *mut ALLEGRO_EVENT_SOURCE
timestamp: f64
x: i32
y: i32
z: i32
w: i32
dx: i32
dy: i32
dz: i32
dw: i32
display: *mut ALLEGRO_DISPLAY
MouseButtonDown
Fields
source: *mut ALLEGRO_EVENT_SOURCE
timestamp: f64
x: i32
y: i32
z: i32
w: i32
display: *mut ALLEGRO_DISPLAY
MouseButtonUp
Fields
source: *mut ALLEGRO_EVENT_SOURCE
timestamp: f64
x: i32
y: i32
z: i32
w: i32
display: *mut ALLEGRO_DISPLAY
MouseWarped
Fields
source: *mut ALLEGRO_EVENT_SOURCE
timestamp: f64
x: i32
y: i32
z: i32
w: i32
dx: i32
dy: i32
dz: i32
dw: i32
display: *mut ALLEGRO_DISPLAY
MouseEnterDisplay
Fields
source: *mut ALLEGRO_EVENT_SOURCE
timestamp: f64
x: i32
y: i32
z: i32
w: i32
display: *mut ALLEGRO_DISPLAY
MouseLeaveDisplay
Fields
source: *mut ALLEGRO_EVENT_SOURCE
timestamp: f64
x: i32
y: i32
z: i32
w: i32
display: *mut ALLEGRO_DISPLAY
TimerTick
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more