Struct nannou::ui::input::ControllerButton [−]
Components of a controller button event. Not guaranteed consistent across backends.
Fields
id: i32
Which controller was the button on.
Which button was pressed.
Methods
impl ControllerButton
impl ControllerButton
pub fn new(id: i32, button: u8) -> 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 Hash for ControllerButton
impl Hash for ControllerButton
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for ControllerButton
impl Clone for ControllerButton
fn clone(&self) -> ControllerButton
fn clone(&self) -> ControllerButton
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ControllerButton
impl Debug for ControllerButton
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Serialize for ControllerButton
impl Serialize for ControllerButton
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl From<ControllerButton> for Button
impl From<ControllerButton> for Button
fn from(btn: ControllerButton) -> Button
fn from(btn: ControllerButton) -> Button
Performs the conversion.
impl<'de> Deserialize<'de> for ControllerButton
impl<'de> Deserialize<'de> for ControllerButton
fn deserialize<__D>(
__deserializer: __D
) -> Result<ControllerButton, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ControllerButton, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ControllerButton
impl Copy for ControllerButton
impl Eq for ControllerButton
impl Eq for ControllerButton
impl PartialEq<ControllerButton> for ControllerButton
impl PartialEq<ControllerButton> for ControllerButton
fn eq(&self, other: &ControllerButton) -> bool
fn eq(&self, other: &ControllerButton) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ControllerButton) -> bool
fn ne(&self, other: &ControllerButton) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ControllerButton
impl Send for ControllerButton
impl Sync for ControllerButton
impl Sync for ControllerButton