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 button

Right button

Up button

Down button

Action button

Trait Implementations

impl Copy for Button
[src]

impl Clone for Button
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Button
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Button
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Button
[src]

impl Hash for Button
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Button

impl Sync for Button