use crate::button::Button; use crate::input_signals::InputSignals; pub trait PadBridge { fn begin_frame(&mut self, signals: &InputSignals); fn any(&self) -> bool; fn up(&self) -> &Button; fn down(&self) -> &Button; fn left(&self) -> &Button; fn right(&self) -> &Button; fn a(&self) -> &Button; fn b(&self) -> &Button; fn x(&self) -> &Button; fn y(&self) -> &Button; fn l(&self) -> &Button; fn r(&self) -> &Button; fn start(&self) -> &Button; fn select(&self) -> &Button; }