pub trait Backend {
// Required methods
fn update(&mut self) -> Result<()>;
fn enumerate_controllers(&mut self) -> Result<Vec<ControllerInfo>>;
fn get_input(&self, controller_id: usize) -> Result<RawInput>;
}Expand description
Input backend trait for controller input Note: Removed Send + Sync bounds as some backends (SDL2, gilrs) cannot be shared across threads