Results 1 to 3 of 3

Thread: Preference For Momentary-On Vs Toggle-On ?

  1. #1
    Join Date
    Apr 2013
    Location
    Los Angeles
    Posts
    81
    Blog Entries
    2

    Default Preference For Momentary-On Vs Toggle-On ?

    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?

    Thanks,
    Your help is appreciated before building two versions of everything.
    JD

  2. #2

    Default

    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.

    http://fsdeveloper.com/forum/

    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:
    Code:
    (L:B350i_Left_PitotHeat,bool) ! (>L:B350i_Left_PitotHeat,bool)
    Last edited by n4gix; 11-02-2017 at 12:02 PM.
    Bill Leaming
    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...

  3. #3
    Join Date
    Apr 2013
    Location
    Los Angeles
    Posts
    81
    Blog Entries
    2

    Default

    Thanks for the reply.
    From your example, XML looks very easy to read (compared to some other computer languages), so I am off to learn some simple XML.
    Thanks for the help
    JD

Similar Threads

  1. Radeon 9200 -- momentary red desktop when I exit FS
    By cmhodge in forum PC Hardware, Video And Audio Help
    Replies: 0
    Last Post: 02-23-2006, 04:00 PM
  2. Replies: 5
    Last Post: 01-20-2005, 08:53 AM
  3. Replies: 10
    Last Post: 01-19-2005, 12:50 PM
  4. Wanted by preference alive.....
    By loic in forum FS2002
    Replies: 0
    Last Post: 01-18-2003, 07:49 AM
  5. Whats your preference then.....Boeing or Airbus??
    By Ptull in forum DreamFleet General Discussion Forum
    Replies: 31
    Last Post: 07-26-2002, 07:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •