Struct input::controller::ControllerButton
source · Expand description
Components of a controller button event. Not guaranteed consistent across backends.
Fields§
§id: i32Which controller was the button on.
Which button was pressed.
Implementations§
Trait Implementations§
source§impl Clone for ControllerButton
impl Clone for ControllerButton
source§fn clone(&self) -> ControllerButton
fn clone(&self) -> ControllerButton
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ControllerButton
impl Debug for ControllerButton
source§impl<'de> Deserialize<'de> for ControllerButton
impl<'de> Deserialize<'de> for ControllerButton
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ControllerButton> for Button
impl From<ControllerButton> for Button
source§fn from(btn: ControllerButton) -> Self
fn from(btn: ControllerButton) -> Self
Converts to this type from the input type.