Enum gilrs::Button
[−]
[src]
#[repr(u16)]pub enum Button { South, East, North, West, C, Z, LeftTrigger, LeftTrigger2, RightTrigger, RightTrigger2, Select, Start, Mode, LeftThumb, RightThumb, DPadUp, DPadDown, DPadLeft, DPadRight, Unknown, }
Gamepad's elements which state can be represented by bool
.
Variants
South
East
North
West
C
Z
LeftTrigger
LeftTrigger2
RightTrigger
RightTrigger2
Select
Start
Mode
LeftThumb
RightThumb
DPadUp
DPadDown
DPadLeft
DPadRight
Unknown
Methods
impl Button
[src]
fn is_action(self) -> bool
fn is_trigger(self) -> bool
fn is_stick(self) -> bool
fn is_dpad(self) -> bool
Trait Implementations
impl Debug for Button
[src]
impl Clone for Button
[src]
fn clone(&self) -> Button
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 Copy for Button
[src]
impl PartialEq for Button
[src]
fn eq(&self, __arg_0: &Button) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.