Heretic
Resource contributor
I want to extract values from a joystick axis with XMLTools' XMLKeys class, but it doesn't seem to work and the documentation and included examples are rather incomplete. Furthermore, the example containing the throttle control via spacebar and slider just won't work, no matter what.
Here's my code:
The axis is correct since movement is blocked in FSX with the key capture active, but the L: var is never updated.
What I eventually want to do with the values returned from the axis is processing for use in a custom L: var driven flap lever.
Here's my code:
Code:
'joystick:0:Slider:0' (>C:XMLKEYS:KeyName,string) (>C:XMLKEYS:KeyCaptureOn,bool)
(C:XMLKEYS:KeyValue,number) (>L:000 Slider Test, enum)
The axis is correct since movement is blocked in FSX with the key capture active, but the L: var is never updated.
What I eventually want to do with the values returned from the axis is processing for use in a custom L: var driven flap lever.
Last edited: