[]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

id: i32

Which controller was the button on.

button: u8

Which button was pressed.

Methods

impl ControllerButton

pub fn new(id: i32, button: u8) -> ControllerButton

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

Trait Implementations

impl Eq for ControllerButton

impl Debug for ControllerButton

impl StructuralPartialEq for ControllerButton

impl Copy for ControllerButton

impl Hash for ControllerButton

impl StructuralEq for ControllerButton

impl PartialOrd<ControllerButton> for ControllerButton

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

impl Serialize for ControllerButton

impl Ord for ControllerButton

impl Clone for ControllerButton

impl PartialEq<ControllerButton> for ControllerButton

Auto Trait Implementations

Blanket Implementations

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 = !

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> SetParameter for T