Jump to content

Support for tri-state switches in future patches?


Recommended Posts

Posted (edited)

Having a look through the keyboard .lua in the new patch indicates no changes from the release version.

 

I have a programmable keyboard and I'm trying to allocate one push button to the function of the Master Arm switch, however this is a tri-state switch (3 positions ;) :D) and there doesn't appear to be a 'Toggle' function in the .lua file for tri-state switches (e.g. Master Arm, Laser Arm, Gun PAC etc) but there are singular commands. This makes sense for those guys hooking up I/O hardware to physical switches, but it would mean using three push buttons on a keyboard. Not ideal...

 

Is there any way of creating your own toggle functions in the .lua file in order to acheive this? Will toggle functions for tri-state switches be added to future patches? Can't be too hard right??!

Edited by CrashEd
Posted
.

Next question is How???:huh:

 

Dunno, hence the question! I know nothing about .lua files tbh.

 

Well, two state switches exist (CICU, JTRS, HUD Day/Night etc), so why not 3 state switches like the Master Caution?

 

There must be a way to add code into the .lua to do this??

Posted

hmm I think the thing to remember here is two states switches are on or off where as tri state switches have basically 2 offs and one on. I would guess that the reason your tri states dont have a toggle is because it would require you to toggle the switch several times to get to safe. ie your master arm switch if you put a toggle on it to go from training to safe you might have to toggle thru arm. So I wouldnt think that this would be in future patches

 

 

 

Posted
Is there any way of creating your own toggle functions in the .lua file in order to acheive this? Will toggle functions for tri-state switches be added to future patches? Can't be too hard right??!

You can already do that with export.lua and oakes export script

Posted

how about a command to push the switch up and a command to push the switch down? Sorta like how the switches work with the mouse, you already can rotate the master arm from safe through armed to get to training, or you can go the other way and flip it immediately down to training.

 

Personally, I don't have any commands set that aren't on the HOTAS of the A-10C. The clickable cockpit is too much fun to use, heh but that may just be me.

 

If you're fairly proficient at scripting it wouldn't be too hard to write an AutoHotkey script or something similar that would take care of this outside the game, though it'd be nice to have it built in.

Posted

Thanks for your input guys (no pun intended ;)) Good food for thought.

 

Yes, I see what you mean - toggling through and armed state could well be an issue, however it is not the case on some of the other switches ('Flt Pln' and 'Page' spring to mind). It would be very useful to be able to toggle those with one key.

 

You can already do that with export.lua and oakes export script

 

Care to elaborate? Is this something you could do perhaps?? I know nothing about .lua files... ;)

 

rud> Your suggestion is a very good compromise and a logical way of reducing the number of keys in use. It would work for me if it wrapped around i.e. you could toggle in either direction:

 

OFF -> Train -> Arm¬

|_________________|

 

or

 

OFF <- Train <- Arm¬

|_________________|

 

BTW, the reason I am doing this is because I use a programmable keyboard (that I used to use for Falcon 4) for my MFDs. I seemed silly not to use the extra keys! ;) Don't get me wrong, the virtual cockpit is the way to go for start-ups and free flight. But when you are in the soup, this thing is much quicker and easier to use :)

 

Here it is:

http://forums.eagle.ru/showthread.php?t=61693

  • Recently Browsing   0 members

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