Struct dmc::game_input_device::Dpad [] [src]

pub struct Dpad {
    pub up: bool,
    pub down: bool,
    pub left: bool,
    pub right: bool,
}

The well-known D-pad is a cross of 4 direction buttons.

Fields

Methods

impl Dpad
[src]

Get a (X,Y) absolute axis pair from this D-pad.

The values are as returned by T::normalized_axis_bounds().

Trait Implementations

impl Debug for Dpad
[src]

Formats the value using the given formatter.

impl Default for Dpad
[src]

Returns the "default value" for a type. Read more

impl Copy for Dpad
[src]

impl Clone for Dpad
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Dpad
[src]

impl PartialEq for Dpad
[src]

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

This method tests for !=.

impl Hash for Dpad
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more