Trait tic80::GamePadTrait
source · pub trait GamePadTrait {
// Required methods
fn buttons(&self) -> GamePadButtons;
fn button_idx(&self, b: Button) -> ButtonIdx;
// Provided methods
fn all_pressed(&self, buttons: GamePadButtons) -> bool { ... }
fn any_pressed(&self, buttons: GamePadButtons) -> bool { ... }
fn is_any_pressed(&self) -> bool { ... }
fn just_pressed(
&mut self,
b: Button,
hold: Option<Ticks>,
period: Option<Ticks>
) -> bool { ... }
}