Struct input::controller::ControllerHat
source · Expand description
Components of a controller hat move event (d-Pad).
Fields§
§id: i32Which Controller was the button on.
state: HatStateWhich button was pressed.
which: u8Which hat on the controller was changed
Implementations§
Trait Implementations§
source§impl Clone for ControllerHat
impl Clone for ControllerHat
source§fn clone(&self) -> ControllerHat
fn clone(&self) -> ControllerHat
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 ControllerHat
impl Debug for ControllerHat
source§impl<'de> Deserialize<'de> for ControllerHat
impl<'de> Deserialize<'de> for ControllerHat
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