Struct turtle::event::ControllerButton []

pub struct ControllerButton {
    pub id: i32,
    pub button: u8,
}

Components of a controller button event. Not guaranteed consistent across backends.

Fields

Which controller was the button on.

Which button was pressed.

Methods

impl ControllerButton

Create a new ControllerButton object. Intended for use by backends when emitting events.

Trait Implementations

impl Copy for ControllerButton

impl Hash for ControllerButton

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<ControllerButton> for ControllerButton

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

This method tests for !=.

impl Debug for ControllerButton

Formats the value using the given formatter. Read more

impl Eq for ControllerButton

impl From<ControllerButton> for Button

Performs the conversion.

impl<'de> Deserialize<'de> for ControllerButton

Deserialize this value from the given Serde deserializer. Read more

impl Clone for ControllerButton

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Serialize for ControllerButton

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations