Enum amethyst_input::Button
[−]
[src]
pub enum Button { Key(VirtualKeyCode), Mouse(MouseButton), }
A Button is any kind of digital input that the engine supports.
Variants
Key(VirtualKeyCode)
Keyboard keys
Mouse(MouseButton)
Mouse buttons
Trait Implementations
impl Eq 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, __arg_0: &Button) -> bool
This method tests for !=
.
impl Debug for Button
[src]
impl Copy 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 From<VirtualKeyCode> for Button
[src]
fn from(keycode: VirtualKeyCode) -> Self
Performs the conversion.
impl From<MouseButton> for Button
[src]
fn from(mouse_button: MouseButton) -> Self
Performs the conversion.