This issue happened a long time ago with Ubuntu 22.04 and Xplane11. The symptoms are that XPlane 12 sees the yoke controller, but not the rudder controller.
Within Xplane12 there's the calibaration etc., for the yoke.

Linux shows both USB devices (Yoke,Rudder) when listing usb devices; lsusb

The fix is I had to add my username to the linux group named 'input'

Then it all worked fine.