[][src]Enum window::input::GameInput

pub enum GameInput {
    Back,
    Menu,
    A(bool),
    B(bool),
    H(bool),
    V(bool),
    Up(bool),
    Down(bool),
    Left(bool),
    Right(bool),
    TriggerL(f64),
    TriggerR(f64),
    BumperL(bool),
    BumperR(bool),
    JoyPush(bool),
    CamPush(bool),
    JoyX(f64),
    JoyY(f64),
    CamX(f64),
    CamY(f64),
    Slot(u8),
    ComboLeft(bool),
    ComboRight(bool),
    ComboLeftPinky(bool),
    ComboRightPinky(bool),
}

Game input, W3 Standard gamepad with extensions events for PC/Console-style games.

Variants

Back

Escape Key or Back Button/Hold Start Button

Menu

T Key or Forward Button/Press Start Button

A(bool)

Left Click/Enter Key or A/Circle Button

B(bool)

Shift Key or B Button

H(bool)

Right Click or X/Y/Square Button

V(bool)

Space Key or X/Y/Triangle Button

Up(bool)

D-Pad or Arrow Key Up or R Key

Down(bool)

D-Pad or Arrow Key Down or F Key

Left(bool)

D-Pad or Arrow Key Left or Scroll Down

Right(bool)

D-Pad or Arrow Key Right or Scroll Up

TriggerL(f64)

Alt Key or Left Bumper Trigger

TriggerR(f64)

Ctrl Key or Right Bumper Trigger

BumperL(bool)

G Key / U Key or Left Bumper Button

BumperR(bool)

E Key / I Key or Right Bumper Button

JoyPush(bool)

Tab Key or Left Joystick Push

CamPush(bool)

Middle Click or Right Joystick Push

JoyX(f64)

A/D Keys Axis or Left Joystick X

JoyY(f64)

W/S Keys Axis or Left Joystick Y

CamX(f64)

Mouse X delta or Right Joystick X

CamY(f64)

Mouse Y delta or Right Joystick Y

Slot(u8)

Inventory slot jumping (only available via number keys 1-10(11-,12=))

ComboLeft(bool)

Combo Action Button

ComboRight(bool)

Combo Action Button

ComboLeftPinky(bool)

Combo Action Button

ComboRightPinky(bool)

Combo Action Button

Trait Implementations

impl Clone for GameInput[src]

impl Copy for GameInput[src]

impl Debug for GameInput[src]

Auto Trait Implementations

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<'a, T> DynBoxFut<'a> for T[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.