Hi Everyone, my name is Chris (CobraOne) and I am the author of the 'TS2017 Raildriver and Joystick Interface' that Eric refers to.
The software can be a little overwhelming to start with but it does allow you to create your own controllers and instruments to talk to TS2021.
With regards this project, Eric has two options that I see to connect his switch to a Arduino.
1. Connecting resistors between each contact will in effect turn it into a joystick.
2. Connect each contact to a pin on the Arduino and
(A). Program the Arduino to send the necessary joystick position or
(B). Program the Arduino to send the keyboard commands A and D. This will negate the requirment to use of my program to talk to TS2021.
If you also wish to display data from TS regarding speed, brake pressure etc then you will need to use my program. You can display the data using LCD's, 7 segment displays or use servo's or stepper motors to create your own analogue gauges.
I am not a professional programmer or an expert on the Arduino but I believe I know enough to help anyone who wishes to use my software to create a train cab.
Chris