Writing Joystick Code: Part 3: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 362: Line 362:
Disadvantages:
Disadvantages:
You have to have at <nowiki>--prop:</nowiki> in the command line.
You have to have at <nowiki>--prop:</nowiki> in the command line.
You can't type <nowiki>--prop:</nowiki> in the comments section at the top of your file, because of the consecutive minus signs. You have to type &amp;minus;&amp;minus;prop:
You can't type <nowiki>--prop:</nowiki> in the comments section at the top of your file, because of the consecutive minus signs.
You have to type minusminusprop: and say that "minus" must be substituted with "-"




Whichever method you use, choose a better name than ''mode'' for your variable. It is too common a word and may well one day be used somewhere in the system files. In the xml file for the Saitek Yoke, where I use a variable to control the assignments of the levers on the quadrant, I call the variable ''SaitekMultiMode''. Unlikely to be used by the FG programmers.
Whichever method you use, choose a better name than ''mode'' for your variable. It is too common a word and may well one day
be used somewhere in the system files. In the xml file for the Saitek Yoke, where I use a variable to control the assignments
of the levers on the quadrant, I call the variable ''SaitekMultiMode''. Unlikely to be used by the FG programmers, or anybody else.




224

edits