Struct gilrs::ev::state::ButtonData [−][src]
pub struct ButtonData { /* fields omitted */ }
Information about button stored in State
.
Methods
impl ButtonData
[src]
impl ButtonData
pub fn is_pressed(&self) -> bool
[src]
pub fn is_pressed(&self) -> bool
Returns true
if button is pressed.
pub fn value(&self) -> f32
[src]
pub fn value(&self) -> f32
Returns value of button.
pub fn is_repeating(&self) -> bool
[src]
pub fn is_repeating(&self) -> bool
Returns true
if button is repeating.
pub fn counter(&self) -> u64
[src]
pub fn counter(&self) -> u64
Returns value of counter when button state last changed.
pub fn timestamp(&self) -> SystemTime
[src]
pub fn timestamp(&self) -> SystemTime
Returns when button state last changed.
Trait Implementations
impl Clone for ButtonData
[src]
impl Clone for ButtonData
fn clone(&self) -> ButtonData
[src]
fn clone(&self) -> ButtonData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for ButtonData
[src]
impl Copy for ButtonData
impl Debug for ButtonData
[src]
impl Debug for ButtonData
Auto Trait Implementations
impl Send for ButtonData
impl Send for ButtonData
impl Sync for ButtonData
impl Sync for ButtonData