Enum pxl::Button [−][src]
pub enum Button { Left, Right, Up, Down, Action, }
Enum representing input buttons
In the current runtime, the arrow keys produce Left
, Right
, Up
and
Down
events, and the spacebar produces Action
events.
Buttons are intended to be abstract, and in the future gamepad, touch, and/or keyboard input may produce Button events
Variants
Left
Left button
Right
Right button
Up
Up button
Down
Down button
Action
Action button
Trait Implementations
impl Copy for Button
[src]
impl Copy for Button
impl Clone for Button
[src]
impl Clone for Button
fn clone(&self) -> Button
[src]
fn clone(&self) -> Button
Returns 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 Debug for Button
[src]
impl Debug for Button
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Button
[src]
impl PartialEq for Button
fn eq(&self, other: &Button) -> bool
[src]
fn eq(&self, other: &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[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Button
[src]
impl Eq for Button
impl Hash for Button
[src]
impl Hash for Button