thanks for the admission in this forum and that i might contribute something to the improvement.
Carlo was so nice to upload my fix regarding the speed display and helped me with the registration. :blush2:
After reading the card from Chris (see TRELLO), I decided to try this.
First, i have assigned newer functions to previously unoccupied buttons.
With some keys i have to find out how this works exactly in MSTS (I can not use RD in MSTS 'cause i do not have Windows XP)
Now i need to learn more about the OR code ...
CHANGES in "UserInputRaildriver.cs"
+ "DisplayHelpWindow" assigned to Button 03 (MSTS Default Legend "Info Traindriver" ... it would be better if we could also switch window tabs in the future
+ "DisplayStationLabels" assigned to Button 05 (MSTS Default Legend "Station & Siding Indicators")
+ "DisplayCarLabels" assigned to Button 06 (MSTS Default Legend "Wagon #")
- "ControlBellToggle" removed (replaced with next step)
+ "ControlBell" assigned to Btn "left side bottom right" (MSTS Default Legend "Bell") / It should now work like the normal B key
+ Comments added in different lines for explainig the keys
I'm not permitted to upload here this kind of file, so you can download from my server:
UserInputRaildriver.cs
TODO (First considerations):
1. For missing key functions, find out whether there are functions in OpenRails compared to MSTS
1.a You might need flags to see if certain information windows are visible (or i have not found it yet) to use the "Hide Infos"-Button or tabs
2. Abstraction of the direct key control as preparation for key mapping2.a Enter Default Values
3. Read / save custom assignments (maybe similar to today's key mapping or an ini-file to use on different routes)3a. Create a form for user input (maybe with a RD layout picture)
3b. Display of the form only with active RD (You have to make sure that the RD is connected so that you can press its buttons)
3c. Embed the form in the Options Menu
3d. Use custom assignments
3b. Display of the form only with active RD (You have to make sure that the RD is connected so that you can press its buttons)
3c. Embed the form in the Options Menu
3d. Use custom assignments
I've compiled the code on my desktop-pc and (for me) it works.
It would be nice, if someone could test as well.
If it's not possible to compile the code, download the executables and extract the rar file to a new directory:
ORTS_TestRD_20170216-1503.rar
ATT: This is only for testing the new RD button assignments (especially the bell if "Horn is triggered Bell" is set).
Have a nice day,
Mike