- Messages
- 1,564
- Country
Any time you press a joystick button, move the slider, move the joystick handle, you are triggering an event. The Event is the means by which the sim software interprets the joystick action. When you move the HAT switch on the joystick, you are triggering the PAN_VIEW event. On my joystick, when I press button 7, I trigger the RELEASE_DROPPABLE_OBJECTS event.
If you use an event logging app like XMLTOOLS you will be able to see the name of the event you trigger when you press any joystick button. Then, a simple gauge that includes the On Event traps, the event name, and your XML script should do the trick for you. This gauge would not need an <Update> section or L:Vars.
If your XML gauge does not include the "c" macro definition, then the 'A' assignment will not work, not as your XML is currently written. Your gauge needs to define what @c means. Include
There are always different ways to do things and I believe that if you keep working the L:Var, bool approach you will get it to work to your satisfaction. That said, your objective is to run a very simple XML script when a certain joystick button is pressed. That's the definition of an event trap, and the On Event approach should be the most efficient way.
Anyway, it's obvious that you are very active testing your xml script and that's great! Keep at it. You definitely will get this to work, one way or another.
Bob
If you use an event logging app like XMLTOOLS you will be able to see the name of the event you trigger when you press any joystick button. Then, a simple gauge that includes the On Event traps, the event name, and your XML script should do the trick for you. This gauge would not need an <Update> section or L:Vars.
If your XML gauge does not include the "c" macro definition, then the 'A' assignment will not work, not as your XML is currently written. Your gauge needs to define what @c means. Include
<Macro Name="c">C:fs9gps</Macro>
or, more simply, just write the A assignment as 'A' (>C:fs9gps:IcaoSearchEnterChar)There are always different ways to do things and I believe that if you keep working the L:Var, bool approach you will get it to work to your satisfaction. That said, your objective is to run a very simple XML script when a certain joystick button is pressed. That's the definition of an event trap, and the On Event approach should be the most efficient way.
Anyway, it's obvious that you are very active testing your xml script and that's great! Keep at it. You definitely will get this to work, one way or another.
Bob