Struct input::controller::ControllerHat
[−]
[src]
pub struct ControllerHat {
pub id: i32,
pub state: HatState,
pub which: u8,
}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]
pub fn new(id: i32, which: u8, state: HatState) -> Self[src]
Create a new ControllerButton object. Intended for use by backends when emitting events.
Trait Implementations
impl Copy for ControllerHat[src]
impl Clone for ControllerHat[src]
fn clone(&self) -> ControllerHat[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 PartialEq for ControllerHat[src]
fn eq(&self, __arg_0: &ControllerHat) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ControllerHat) -> bool[src]
This method tests for !=.
impl Eq for ControllerHat[src]
impl Debug for ControllerHat[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more