Struct input::controller::ControllerHat [−][src]
Components of a controller hat move event (d-Pad).
Fields
id: i32
Which Controller was the button on.
state: HatState
Which button was pressed.
which: u8
Which hat on the controller was changed
Methods
impl ControllerHat[src]
impl ControllerHatpub fn new(id: i32, which: u8, state: HatState) -> Self[src]
pub fn new(id: i32, which: u8, state: HatState) -> SelfCreate a new ControllerButton object. Intended for use by backends when emitting events.
Trait Implementations
impl Copy for ControllerHat[src]
impl Copy for ControllerHatimpl Clone for ControllerHat[src]
impl Clone for ControllerHatfn clone(&self) -> ControllerHat[src]
fn clone(&self) -> ControllerHatReturns 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 ControllerHat[src]
impl PartialEq for ControllerHatfn eq(&self, other: &ControllerHat) -> bool[src]
fn eq(&self, other: &ControllerHat) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ControllerHat) -> bool[src]
fn ne(&self, other: &ControllerHat) -> boolThis method tests for !=.
impl Eq for ControllerHat[src]
impl Eq for ControllerHatimpl Debug for ControllerHat[src]
impl Debug for ControllerHatfn 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 ControllerHat[src]
impl Hash for ControllerHatAuto Trait Implementations
impl Send for ControllerHat
impl Send for ControllerHatimpl Sync for ControllerHat
impl Sync for ControllerHat