I have a PS5 controller.
When my controller is connected through a USB cable, everything works fine.
But when it's connected through Bluetooth, I don't get ControllerSensorUpdated or ControllerTouchpadMotion events.
I suspect that the problem doesn't come from this library but is rather a driver issue, although I'm not 100% sure.
println!(
"{}",
gamepad.has_sensor(SensorType::Accelerometer)
); // prints true when using a USB cable, but false when using Bluetooth
I'm using the master version of sdl2 :
sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2.git", branch = "master", features = ["bundled", "hidapi"] }