Enum allegro::Event [] [src]

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

Fields of DisplayClose

Fields of DisplayResize

Fields of JoystickAxes

Fields of JoystickButtonDown

Fields of JoystickButtonUp

Fields of JoystickConfiguration

Fields of KeyDown

Fields of KeyUp

Fields of KeyChar

Fields of MouseAxes

Fields of MouseButtonDown

Fields of MouseButtonUp

Fields of MouseWarped

Fields of MouseEnterDisplay

Fields of MouseLeaveDisplay

Fields of TimerTick

Trait Implementations

impl Copy for Event
[src]

impl Clone for Event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more