Struct tcod::input::Key
[−]
[src]
pub struct Key { pub code: KeyCode, pub printable: char, pub pressed: bool, pub left_alt: bool, pub left_ctrl: bool, pub right_alt: bool, pub right_ctrl: bool, pub shift: bool, pub alt: bool, pub ctrl: bool, }
Fields
code: KeyCode
printable: char
pressed: bool
left_alt: bool
left_ctrl: bool
right_alt: bool
right_ctrl: bool
shift: bool
alt: bool
ctrl: bool
Trait Implementations
impl Copy for Key
[src]
impl Clone for Key
[src]
fn clone(&self) -> Key
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 PartialEq for Key
[src]
fn eq(&self, __arg_0: &Key) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Key) -> bool
This method tests for !=
.
impl Debug for Key
[src]
impl Default for Key
[src]
impl From<TCOD_key_t> for Key
[src]
fn from(tcod_key: TCOD_key_t) -> Key
Performs the conversion.