Enum input::Button
[−]
[src]
pub enum Button { Keyboard(Key), Mouse(MouseButton), Controller(ControllerButton), }
Models different kinds of buttons.
Variants
Keyboard(Key)
A keyboard button.
Mouse(MouseButton)
A mouse button.
Controller(ControllerButton)
A controller button.
Trait Implementations
impl Copy for Button
[src]
impl Clone for Button
[src]
fn clone(&self) -> Button
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Decodable for Button
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Button, __D::Error>
[src]
Deserialize a value using a Decoder
.
impl Encodable for Button
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
[src]
Serialize a value using an Encoder
.
impl PartialEq for Button
[src]
fn eq(&self, __arg_0: &Button) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Button) -> bool
[src]
This method tests for !=
.
impl Eq for Button
[src]
impl Hash for Button
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Button
[src]
impl From<Key> for Button
[src]
impl From<MouseButton> for Button
[src]
fn from(btn: MouseButton) -> Self
[src]
Performs the conversion.
impl From<ControllerButton> for Button
[src]
fn from(btn: ControllerButton) -> Self
[src]
Performs the conversion.