Here I leave the scripts to make it work with the program Autohotkey. This comes from Run8, but I tried in Trainz 2009 with my throttle quadrant hotas warthog and works. I only had to change the keys to the default Trainz ones. There are things that don't work well, in other trains.. and the extrange behaviour of dynamic brakes is different than reality so the scripts has to be changed, but all can download and it is not necesary lot of knowledge of programming to do something.
I will try to change it and make it work in differnet trains types. Run8 is only for american ones and only 3 type of locos... If I am success, then I will publish my changes, but maybe another one can share his knowledge with us, and can make our joysticks to work. In Run8 is a delicious and I tried a friend Traindriver, but I preffer my warthog as it is more robust and strong components.
Here are the scripts and instructions to make it work. Someone made it for all and that was really nice:
https://www.thedepotserver.com/forums/threads/joystick-to-keypresses-using-autohotkey.3661/
if you don't own the warthog or even you do, maybe you have to configure your axis and buttons in the script. It is very easy. In mine I use the grey little axis for reverser, the right throttle axis for power, and the left throttle for dynamic braking (something cannot be done in tutorial trains in Trainz). The side buttons are for Train brake, air bail out, and the china hat (red button) for activating the dynamic braking.
As said, in the tutorials all is working and I don't use any mouse or keyboard. Trainz don't have keys for gradual apply on train brake and dynamic brake so it will put all or nothing... but this is something to start with.
Thanks!