Enum rusty_sword_arena::game::Event[][src]

pub enum Event {
    WindowClosed,
    MouseMoved {
        position: Vector2,
    },
    Button {
        button_value: ButtonValue,
        button_state: ButtonState,
    },
}

Client Events that may occur

Variants

The window was closed somehow, so we better quit

The mouse is now at this location (OpenGL coordinates - can extend past what's viewable if the mouse is outside the window)

Fields of MouseMoved

Fields of Button

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

impl Debug for Event
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Event
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Event

impl Sync for Event