Can a PS5 Dualsense Controller work with Robotpy and WPIlib?

Is it possible to use a PS5 controller instead of a PS4 controller. We already have the code written for a PS4 controller, but the only controller we have at the moment is a PS5 controller. Do we need to modify the code, or maybe utilize an emulator like DS4Windows?

I do not know if it works directly but DS4 will work for PS5 and PS4 controllers in all 2023 wpilib versions so far, I’ve only tested this for java but there is no reason cpp should be any different & as robotpy is a cpp wrapper it should have full support

1 Like

We use PS5 controllers via the native Driver Station interface. Make sure to use USB for them to be legal during an official competition.

1 Like