logo

Enum primitives::prelude::JoypadButton[][src]

pub enum JoypadButton {
    Fire,
    Up,
    Right,
    Down,
    Left,
    Primary,
    Secondary,
}
Expand description

Representing the buttons on a Joypad for use in the Joypad virtual controller.

Includes directional buttons and two fire buttons: Primary & Secondary. Fire is used as a shortcut for Primary or Secondary.

Variants

Fire

Up

Right

Down

Left

Primary

Secondary

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.