#[cfg(target_os = "windows")]
pub(crate) mod xinput;
#[cfg(not(any(target_os = "windows")))]
pub(crate) mod gilrs;
use crate::types::*;
pub(crate) trait GamepadEngineBackend {
fn update(&mut self) -> Result<(), GamepadError> {
Ok(())
}
fn poll_events(&mut self) -> Vec<GamepadEvent> {
Vec::new()
}
fn gamepads(&self) -> &Vec<GamepadState>;
fn gamepads_mut(&mut self) -> &mut Vec<GamepadState>;
}