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
WindowClosed
The window was closed somehow, so we better quit
MouseMoved
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
position: Vector2 |
Button
Fields of Button
Trait Implementations
impl Copy for Event
[src]
impl Copy for Event
impl Clone for Event
[src]
impl Clone for Event
fn clone(&self) -> Event
[src]
fn clone(&self) -> Event
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Event
[src]
impl Debug for Event
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Event
[src]
impl PartialEq for Event