|
|
Line 356: |
Line 356: |
| </nasal> | | </nasal> |
|
| |
|
|
| |
| ==Our user's joystick profiles, ready to use easy to modify==
| |
| ===CH Products===
| |
| * CH Products Eclipse yoke.[[CH Products/es|CH Products]]
| |
|
| |
| * Errors can be detected on initial startup or at runtime. Both types of errors will be displayed in the terminal.
| |
|
| |
| * One of the most common errors is including a character that makes XML choke. Such characters include
| |
| & < --
| |
|
| |
| These characters will cause problems even if simply included in comments or within scripts.
| |
|
| |
| ===Saitek===
| |
| Some particularly useful ideas for programming scripts within joystick XML files:
| |
| * getprop and setprop can be used for getting & setting properties from the internal properties tree:
| |
| var brake = !getprop("/controls/gear/brake-parking");
| |
| setprop("/controls/gear/brake-parking", brake);
| |
|
| |
| * You can also make your own values on the property tree:
| |
| setprop("/input/joysticks/js[0]/myjoystick-modifier", 1);
| |
| var mod = getprop("/input/joysticks/js[0]/myjoystick-modifier");
| |
|
| |
| * You can print to terminal using the print function. This is very useful for debugging.
| |
|
| |
| print("Just", " a ", "test");
| |
|
| |
|
| |
| ===Logitech===
| |
| Some particularly useful ideas for programming scripts within joystick XML files:
| |
| * Logitech Extreme Digital 3D Pro joystick
| |
| var brake = !getprop("/controls/gear/brake-parking");
| |
| setprop("/controls/gear/brake-parking", brake);
| |
|
| |
| * You can also make your own values on the property tree:
| |
| setprop("/input/joysticks/js[0]/myjoystick-modifier", 1);
| |
| var mod = getprop("/input/joysticks/js[0]/myjoystick-modifier");
| |
|
| |
| * You can print to terminal using the print function. This is very useful for debugging.
| |
|
| |
|
|
| |
|