Did you click the checkbox to enable game controllers?
Launcher.
Settings.
General settings tab.
This will setup the basic function, but you need some kind of software such as xpadder to configure the functions.
It worked quite well when tested way, way back in the Trainz Dev versions we looked at long before any of this made its way into T:ANE and TRS19.