Struct conrod::input::ControllerButton
[−]
[src]
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.
Which button was pressed.
Methods
impl ControllerButton
[src]
pub fn new(id: i32, button: u8) -> ControllerButton
[src]
Create a new ControllerButton object. Intended for use by backends when emitting events.
Trait Implementations
impl Copy for ControllerButton
[src]
impl<'de> Deserialize<'de> for ControllerButton
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<ControllerButton, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<ControllerButton, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<ControllerButton> for ControllerButton
[src]
fn eq(&self, __arg_0: &ControllerButton) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ControllerButton) -> bool
[src]
This method tests for !=
.
impl Clone for ControllerButton
[src]
fn clone(&self) -> ControllerButton
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Serialize for ControllerButton
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&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 Eq for ControllerButton
[src]
impl Hash for ControllerButton
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl From<ControllerButton> for Button
[src]
fn from(btn: ControllerButton) -> Button
[src]
Performs the conversion.