Jump to content

Preference For Momentary-On Vs Toggle-On ?


Recommended Posts

I am about to build gadgets that use switches to turn-on various functions. Gadgets like instrument panels with Extend-Retract-Landing-Gear and De-Ice and Navigation-Lights. For a lot of these features a Toggle-On-and-stay-on would be more realistic. But I think that it might be easier to translate a Momentary-On-Pushbutton (keypad) to-be-equal-to a mouse-click or equal-to a shortcut-key in the flight simulator program.


How much more work is it to use Toggle-On versus Momentary-On switches when talking to the flight sim program?


I think that Momentary-On switches are easier to translate for FSX.

Is this also true for Prepar3d, X-Plane, DCS, Flight-Gear?



Your help is appreciated before building two versions of everything.


Link to comment
Share on other sites

To be perfectly honest, this forum software does not do well to display either C code or XML scripts.


I suggest joining the FS Developer forums where there are TONS of examples of working C and XML 'gauges' as well as a vibrant forum with some of the world's best developers sharing their expertise.




I create whatever switch type is required by the real world example, which include on/off, multiple selection, and momentary contact among others.


Both C code and XML scripted switches are fairly easy to create, but XML is by far the easiest! Here is an example of a simple on/off Boolean toggle switch:

[font=Consolas][size=2][font=Consolas][size=2](L:B350i_Left_PitotHeat,bool) ! (>L:B350i_Left_PitotHeat,bool)[/size][/font][/size][/font]

Bill Leaming http://smileys.sur-la-toile.com/repository/Combat/0054.gif

Gauge Programming - 3d Modeling Military Visualizations

Flightsim.com Panels & Gauges Forum Moderator

Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - EVGA GTX770 4GB - Win7 64bit Home Premium

Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional

Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium

NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...