@YosomiChann
If you want to see an example of how it works, here is a plugin that can help you.
WindowsDualsenseUnreal: Plugin with full support for the DualSense PS5 controller in Unreal Engine versions 5.2 ~ 5.6 for Windows platforms. No configuration needed