Struct input::controller::ControllerButton [−][src]
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]
impl ControllerButtonpub fn new(id: i32, button: u8) -> Self[src]
pub fn new(id: i32, button: u8) -> SelfCreate a new ControllerButton object. Intended for use by backends when emitting events.
Trait Implementations
impl Copy for ControllerButton[src]
impl Copy for ControllerButtonimpl Clone for ControllerButton[src]
impl Clone for ControllerButtonfn clone(&self) -> ControllerButton[src]
fn clone(&self) -> ControllerButtonReturns 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 PartialEq for ControllerButton[src]
impl PartialEq for ControllerButtonfn eq(&self, other: &ControllerButton) -> bool[src]
fn eq(&self, other: &ControllerButton) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ControllerButton) -> bool[src]
fn ne(&self, other: &ControllerButton) -> boolThis method tests for !=.
impl Eq for ControllerButton[src]
impl Eq for ControllerButtonimpl Debug for ControllerButton[src]
impl Debug for ControllerButtonfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for ControllerButton[src]
impl Hash for ControllerButtonfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)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 From<ControllerButton> for Button[src]
impl From<ControllerButton> for Buttonfn from(btn: ControllerButton) -> Self[src]
fn from(btn: ControllerButton) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for ControllerButton
impl Send for ControllerButtonimpl Sync for ControllerButton
impl Sync for ControllerButton