Enum ggez::event::Button [] [src]

#[repr(i32)]
pub enum Button { A, B, X, Y, Back, Guide, Start, LeftStick, RightStick, LeftShoulder, RightShoulder, DPadUp, DPadDown, DPadLeft, DPadRight, }

Variants

Methods

impl Button
[src]

[src]

Return the Button from a string description in the same format used by the game controller mapping strings.

[src]

Return a string for a given button in the same format using by the game controller mapping strings

[src]

[src]

Trait Implementations

impl Copy for Button
[src]

impl Hash for Button
[src]

[src]

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

1.3.0
[src]

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

impl PartialEq<Button> for Button
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Debug for Button
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Button
[src]

impl Clone for Button
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Button

impl Sync for Button