Keybinding - NO/NC instead of toggle - ED Forums
 


Notices

Reply
 
Thread Tools Display Modes
Old 06-02-2020, 09:41 AM   #1
Dasolskinn
Junior Member
 
Dasolskinn's Avatar
 
Join Date: Jul 2015
Location: Norway
Posts: 19
Default Keybinding - NO/NC instead of toggle

Is there an easy way to make switches NC (Normally closed) or NO (Normally open) instead of toggle. Getting tired of bad keybinding in DCS, the warthog, mirage and master arm in the F-16 is pretty neat.

I'm not proficient with T.A.R.G.E.T GUI or script, but I'm open to learn it somewhat.

Any tips or ideas?

(TM Warthog)
Dasolskinn is offline   Reply With Quote
Old 06-02-2020, 12:40 PM   #2
Ant0ine
Member
 
Join Date: Jun 2014
Location: France - Nord - 59510
Posts: 289
Default

I am not sure to understand what you mean with NC (Normally closed) and NO (Normally open).

The problem with Warthog throttle, the way I usually explain it with my frenchglish.. Is that those 2 and 3 way toggle only send a direct x button that the pc can see on their On position, and not on their Off position.

If that is the issue you are talking about, then yes I can help you, both with Target GUI or Script Editor, and also with Joystick Gremlin which is the one I advise today.

Here is an exemple in Joystick Gremlin, with the 3 positions Flap toggle switch which is On - Off - On.

https://imgur.com/a/96Hifh7
Ant0ine is offline   Reply With Quote
Old 06-02-2020, 01:27 PM   #3
Dasolskinn
Junior Member
 
Dasolskinn's Avatar
 
Join Date: Jul 2015
Location: Norway
Posts: 19
Default

Sorry for bad explanation, but yes you had the right assumption.
NO (Normally open) switch would constantly give a signal when in the ON position, and cut the signal in the OFF position, NC (Normally closed) would be the inverted version of this.

Never heard of "Joystick Gremlin" but I'm going to check it out when I got the time, will this program make the joystick a viritual joystick as T.A.R.G.E.T does? (Just read about this)

Will update my progress if there's anything.
And thanks btw, much appreciated!
__________________
Gear
Spoiler:
TM Warthog | TM MFD | Buddyfox UFC | Logitech G Pro Flight Rudder | TrackIr 5 | Oculus CV1 | Voiceattack+VAICOM | Tacview | Comatflite | too many modules
Dasolskinn is offline   Reply With Quote
Old 06-03-2020, 06:51 AM   #4
Ant0ine
Member
 
Join Date: Jun 2014
Location: France - Nord - 59510
Posts: 289
Default

Yes, to use Joystick Gremlin you have to install Vjoy, then you create one, or more.. Vjoy device that will constantly stay virtually connected to your PC. Then you use Joystick Gremlin to configure those Vjoy device(s).

Target also work with virtual device. But it automatically hide your physical device(s) and merge them into a virtual device when you run a Target profile.

With Gremlin the physical device remain visible, which isn't a problem with DCS because the mapping menu is great, we work in a different column for each device, virtual or not. For other game however it might be needed to hide physical device. In this case we can install HID Guardian, using this app, then in Joystick Gremlin option menu we find an option to hide device. It is important to run JG as admin, Also note that after we tick/untick a box to hide/unhide a device, we have to reconnect the device for the change to occur.

Oh and we also need this version of JG for that to work correctly.
Ant0ine is offline   Reply With Quote
Old 06-03-2020, 11:22 PM   #5
shu77
Senior Member
 
shu77's Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 1,030
Default

I think this is what you are talking about in Target, this snippet is using the awesome 128 button library from here for the ALT Hold 3 position toggle on the Warthog throttle
Pulse+ makes the button press momentary (so it ends in Open rather than close) when going to the on position, and MAPKEYR sends the keystroke (again Momentary) on the Off or centering move. I use it to move between A2A and A2G mode, with the centering toggle turning the modes off (i.e. a second press)

MapKey(&Throttle, APPAT, PULSE+DX44);
MapKeyR(&Throttle, APPAT, PULSE+DX44);
MapKey(&Throttle, APAH, PULSE+DX45);
MapKey(&Throttle, APALT, PULSE+DX46);
MapKeyR(&Throttle, APALT,PULSE+DX46);
__________________

Metabox Alpha-X, i7-9750H, NVIDIA 1660Ti 6GB, 16GB RAM, 500GB SSD, TM Warthog, Saitek rudder pedals & throttle quadrant, Handbrake collective, Track IR4, Cougar MFDs, 1440p, Viewsonic vx3276-2k
DCS Airfield Diagrams FENCE Checks & Threat Summaries

Hornet, Super Carrier, Warthog, Mustang, Sabre, Combined Arms, FC3, Nevada, Gulf, Normandy, WW2 Asset pack, AH-6J, MB-339, A-4-EC, Edge 540
shu77 is offline   Reply With Quote
Reply

Tags
keybindings, thrustmaster, toggle switches, warthog

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 08:44 PM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.