Enum lux::interactive::Event [] [src]

pub enum Event {
    MouseMoved((i32, i32)),
    MouseWheel(MouseScrollDelta),
    MouseDown(MouseButton),
    MouseUp(MouseButton),
    KeyPressed(u8, Option<char>, Option<VirtualKeyCode>),
    KeyReleased(u8, Option<char>, Option<VirtualKeyCode>),
    WindowResized((u32, u32)),
    WindowMoved((i32, i32)),
    FileDropped(PathBuf),
}

An even coming from an Interactive object.

Variants

MouseMoved

The mouse moved to this position.

MouseWheel

The mouse wheel moved by this delta.

MouseDown

This mouse button was pushed down.

MouseUp

This mouse button was released.

KeyPressed

This key was pressed.

The keycode u8 is always given, which can sometimes be translated into a char and can sometimes be translated to a VirtualKeyCode.

KeyReleased

This key was released.

WindowResized

The window was resized to this size.

WindowMoved

The window was moved to this position on the screen.

FileDropped

A file has been dragged-and-dropped into the screen.

Trait Implementations

Derived Implementations

impl Clone for Event

fn clone(&self) -> Event

fn clone_from(&mut self, source: &Self)

impl PartialEq for Event

fn eq(&self, __arg_0: &Event) -> bool

fn ne(&self, __arg_0: &Event) -> bool

impl Debug for Event

fn fmt(&self, __arg_0: &mut Formatter) -> Result