by wkitty42 » Wed Oct 17, 2018 6:10 pm
ok, default files are found in the FG data directory... for those, like joystick, that the user can change, the selected default file is copied to their (on linux) ~/.fgfs/Input/Joysticks directory where the modification takes place... if this file exists then this file is the one FG uses otherwise it uses the default one in the data directory... this modified file will be found in a winwhatever user's %appdata% directory inside the flightgear.com folder... i'm not sure where it is found on a mac, though...
so my suggestion was this...
1. make your changes, save them and exit the sim.
2. copy Input/Joysticks/foobar.xml Input/Joysticks/myfoobar-1.xml
3. restart the sim, make the changes you want for the other file and exit the sim.
4. copy Input/Joysticks/foobar.xml Input/Joysticks/myfoobar-2.xml
5. now simply copy one of the myfoobar-*.xml files to foobar.xml when you want to use it.
6. remember if you make changes, you will need to copy them over to the proper stored file so you will have them the next time you copy and use that file.
i used foobar.xml above but the actual file name will be one that represents your joystick... you would use that name to copy the stored file name from to whatever name you want to use to identify the file... when you copy one of your stored files for the sim to use, you would copy it to the exact original file name for your joystick...
you could script this and i have done similar for other programs in the past but there is always the chance that something will happen and one of the stored files will end up default or containing the changes from the other stored file... depending on how often you change the layout of your joystick, you may have no problems as long as you keep it straight in your head which file is what...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."