Trait hookmap_core::common::EmulateButtonInput [−][src]
pub trait EmulateButtonInput { fn press(&self); fn release(&self); fn is_pressed(&self) -> bool; fn click(&self) { ... } fn input(&self, action: ButtonAction) { ... } }
Expand description
Emulates button input.
Required methods
fn is_pressed(&self) -> bool
fn is_pressed(&self) -> bool
Returns true
if a button is pressed.
Provided methods
fn input(&self, action: ButtonAction)
fn input(&self, action: ButtonAction)
Dynamically change whether to press or release.