Struct gilrs::ev::ButtonData
[−]
[src]
pub struct ButtonData { /* fields omitted */ }
Information about button stored in State
.
Methods
impl ButtonData
[src]
fn is_pressed(&self) -> bool
[src]
Returns true
if button is pressed.
fn is_repeating(&self) -> bool
[src]
Returns true
if button is repeating.
fn counter(&self) -> u64
[src]
Returns value of counter when button state last changed.
fn timestamp(&self) -> SystemTime
[src]
Returns when button state last changed.
Trait Implementations
impl Clone for ButtonData
[src]
fn clone(&self) -> ButtonData
[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