August 22, 200421 yr I find the following code in a custom gauge:- 1 (>G:Var5)My question is - using XML code, how do I add a keystroke action to this instead of just mouse? Assume it's a gauge written to encompass several actions and meet conditions etc that aren't done by any existing sim functions.Thanks for any ideas ...Michael.
August 22, 200421 yr Author " ...how do I add a keystroke action to this instead of just mouse?"You can't :-) FS just doesn't support this.The only way to have a keystroke drive a variable in your gauge:- Assign a keystroke to an ununsed event in for your aircraft.- Read the associated variable, and let that control your variable.This "trick" isn't very usefull however, since in FS9 it is hard to find suitable "unused" variables that you can "reuse" for this purpose.Example:If your aircraft uses a jet engine, the Magneto events/variables could be used; however, FS9 (unlike FS2002) will disable these variables because they are not relevant for that enginetype.Rob Barendregt
Create an account or sign in to comment