Page 1 of 1

Is it possible to use a axis as a button when shift function is active?

Posted: Mon Mar 06, 2023 21:40
by joaquinbaeza
I want to use a axis as axis in normal function, but it must act as a button when I active shift function. I am not getting how to get it. Thanks.

Re: Is it possible to use a axis as a button when shift function is active?

Posted: Mon Mar 06, 2023 23:46
by Victorus
In what axis position? See axis to buttons.

Re: Is it possible to use a axis as a button when shift function is active?

Posted: Tue Mar 07, 2023 23:11
by joaquinbaeza
For now, it doesn't care the position, I just want to convert an axis into a button when Shift is active.

For example, in DCS Blackshark there are "Wheel Brake" (axis) and "Parking Brake" (button) functions.
I want to use the MCG paddle as "wheel brake" to slow down and stop the helicopter, and after that to activate "parking brakes" using the same paddle but now acting as a button so, to get a double function, I have to configure a button as Shift. Now, how to convert the paddle in a button only while I am pressing Shift, and to act as an axis again when I release the Shift button?.

Re: Is it possible to use a axis as a button when shift function is active?

Posted: Fri Mar 10, 2023 11:41
by Ron61
You can also use the brake button without Shift. Use the slider to adjust the zone in which the button will start to work. Or is it not suitable?
Brake.png

Re: Is it possible to use a axis as a button when shift function is active?

Posted: Fri Mar 10, 2023 15:02
by Victorus
This method (A2B only) can be dangerous. If you accidental move axis to extreme position parking brakes will be on. While velocity is not zero. I think joaquinbaeza is right with separate button to activate parking brake.
Thus begin.
!Note. I have not MCG handy so my example is based on other controller. Your axes and button numbers will differ.
Axis2button function output is button. Button-modifier will convert it to another one. Save one line. Boolean Comparator1 will replace A2B.
Open Profile - Boolean tab. Click first empty slot. Select Comparator1. Layer=1(axis #) (remember, you will assign your. As I remember MCG brake lever is #3).
Treshold = 96 or how near the bound you want to register brake chock. Output = Free! No line number is occupied. Comparator output only.
Comparator96.jpg

Click next slot and select 2AND function. Output will be registered if BOTH inputs are ON. 1st input layer = Physical button 15 - our modifier (Remember.....)). 2nd input is Boolean 1, Free output of comparator. Output = Physical button. Any free. 40 for me.
2AND.jpg

No need to register modifier press as button. Profile - Buttons - Physical layer tab. Click line 15 and select No function.
NoF.jpg

That's almost all. All if in DCS button for parking brake must NOT be pressed all the time, press and forget.
If it must be pressed all breaking time, than make button 40 Button Alt (similar to CapsLock). Click line 40 and select Buttons - ButAlt. Def. State = OFF.
BAlt.jpg

Press SET. See result.
result.jpg

Re: Is it possible to use a axis as a button when shift function is active?

Posted: Fri Mar 10, 2023 15:04
by Victorus
Sorry! I have forgotten about MCG break lever special function! And solved problem in general terms))). Thanks to Ron! You can combine Ron's method with my.