[][src]Enum stick::Event

pub enum Event {
    Connect(Box<Gamepad>),
    Disconnect,
    Accept(bool),
    Cancel(bool),
    Common(bool),
    Action(bool),
    Up(bool),
    Down(bool),
    Left(bool),
    Right(bool),
    Back(bool),
    Forward(bool),
    L(bool),
    R(bool),
    Lz(f32),
    Rz(f32),
    MotionH(f32),
    MotionV(f32),
    CameraH(f32),
    CameraV(f32),
    MotionButton(bool),
    CameraButton(bool),
    Quit,
}

An event on the "Standard Gamepad" from w3c shown below.

Standard Gamepad

Variants

Connect(Box<Gamepad>)

A new controller has just been plugged in.

Disconnect

Controller unplugged.

Accept(bool)

Bottom right cluster (A / Circle / Return / Right Click).

Cancel(bool)

Bottom right cluster (B / X / Shift).

Common(bool)

Leftmost button in right cluster (Y / X / Square / Left Click).

Action(bool)

Topmost button in right cluster (X / Y / Triangle / Space).

Up(bool)

Up arrow / D-pad

Down(bool)

Down arrow / D-pad

Left(bool)

Left arrow / D-pad

Right(bool)

Right arrow / D-pad

Back(bool)

Back / Select Button (Escape)

Forward(bool)

Forward / Start Button (Tab)

L(bool)

Near L - "Inventory" (E)

R(bool)

Near R - "Use" (R)

Lz(f32)

Far L Throttle - "Sneak" (Ctrl)

Rz(f32)

Far R Throttle - "Precision Action" (Alt)

MotionH(f32)

Right Joystick (A / D)

MotionV(f32)

Left Joystick (W / S)

CameraH(f32)

Left Joystick (Mouse X Position)

CameraV(f32)

Right Joystick (Mouse Y Position)

MotionButton(bool)

Left Joystick Button (Middle Click)

CameraButton(bool)

Right Joystick Button (F)

Quit

Home button (Target platform application close)

Trait Implementations

impl Debug for Event[src]

impl Display for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.