pub enum Event {
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
Fields of DisplayClose
source: *mut ALLEGRO_EVENT_SOURCE | |
timestamp: f64 | |
DisplayResize
Fields of DisplayResize
JoystickAxes
Fields of JoystickAxes
JoystickButtonDown
Fields of JoystickButtonDown
source: *mut ALLEGRO_EVENT_SOURCE | |
timestamp: f64 | |
id: *mut ALLEGRO_JOYSTICK | |
button: i32 | |
JoystickButtonUp
Fields of JoystickButtonUp
source: *mut ALLEGRO_EVENT_SOURCE | |
timestamp: f64 | |
id: *mut ALLEGRO_JOYSTICK | |
button: i32 | |
JoystickConfiguration
Fields of JoystickConfiguration
source: *mut ALLEGRO_EVENT_SOURCE | |
timestamp: f64 | |
KeyDown
Fields of KeyDown
source: *mut ALLEGRO_EVENT_SOURCE | |
timestamp: f64 | |
keycode: KeyCode | |
display: *mut ALLEGRO_DISPLAY | |
KeyUp
Fields of KeyUp
source: *mut ALLEGRO_EVENT_SOURCE | |
timestamp: f64 | |
keycode: KeyCode | |
display: *mut ALLEGRO_DISPLAY | |
KeyChar
Fields of KeyChar
MouseAxes
Fields of MouseAxes
MouseButtonDown
Fields of MouseButtonDown
MouseButtonUp
Fields of MouseButtonUp
MouseWarped
Fields of MouseWarped
MouseEnterDisplay
Fields of MouseEnterDisplay
MouseLeaveDisplay
Fields of MouseLeaveDisplay
TimerTick
Fields of TimerTick
source: *mut ALLEGRO_EVENT_SOURCE | |
timestamp: f64 | |
count: i64 | |
Trait Implementations