Struct dmc::game_input_device::Dpad
[−]
[src]
pub struct Dpad { pub up: bool, pub down: bool, pub left: bool, pub right: bool, }
The well-known D-pad is a cross of 4 direction buttons.
Fields
up: bool
down: bool
left: bool
right: bool
Methods
impl Dpad
[src]
fn to_axes<T: SignedAxis>(&self) -> Vec2<T>
Get a (X,Y) absolute axis pair from this D-pad.
The values are as returned by T::normalized_axis_bounds()
.
Trait Implementations
impl Debug for Dpad
[src]
impl Default for Dpad
[src]
impl Copy for Dpad
[src]
impl Clone for Dpad
[src]
fn clone(&self) -> Dpad
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for Dpad
[src]
impl PartialEq for Dpad
[src]
fn eq(&self, __arg_0: &Dpad) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Dpad) -> bool
This method tests for !=
.