Press the same button with Tempo function and hold

Moderator: AdminGroup

Chris_R
Posts: 3
Joined: Sat Jan 16, 2021 16:14

Press the same button with Tempo function and hold

Postby Chris_R » Wed Mar 08, 2023 14:37

Hi guys.

iam a new owner of a "GUNFIGHTER MK.III ‘MODERN COMBAT EDITION’ ULTIMATE".
Maybe someone can help me with the software.

So it would work like this:

> Default state: Deactivated
> Press assigned Joystick button short = Press once for example "F4"
> Press the same assigned button long = Activate for example "F4" and stayed pressed
> Press the same assigned button long = Deactivated

Thank you

User avatar
Victorus
Posts: 1677
Joined: Wed Sep 21, 2011 13:25
Has thanked: 374 times
Been thanked: 257 times

Re: Press the same button with Tempo function and hold

Postby Victorus » Wed Mar 08, 2023 20:45

I hope you are familiar with vkbdevconfig.exe. Try Tempo3 function together with boolean OR. This function slightly differs from your request. Button 13 (my example) short press - F4 on/off, long - F4 on. Until double click. F4 off.
So select button and press its cell (13). Select Tempo - Tempo3 function. Select logical function Keyboard and map button 13 to F4.
tempo3.jpg

Now we will use Button alternate function - analog to CapsLock. I've selected (my fantasy)) button 62. Press cell 62 and select button = But alt. Map to F4.
but62.jpg

Depending on press type (long or double) buttons 14 and 15 will be virtually pressed. First (14) must activate But alt 62 (F4), second (15) deactivate But alt 62. Use two booleans OR.
or1.jpg

or2.jpg

Set. Try.
result.jpg
Руководство пользователя по контроллерам VKB (VKB controllers User Guide) Ru&En
https://disk.yandex.ru/d/LlqiYtIrIetBOQ

User avatar
DeadWalking
Posts: 103
Joined: Fri Jun 24, 2022 4:51
Has thanked: 66 times
Been thanked: 15 times

Re: Press the same button with Tempo function and hold

Postby DeadWalking » Mon Mar 20, 2023 8:33

I approached it a little differently.

Physical Buttons

Desired Tempo Button I am pointing the long press at 121, can be any unused logical.
Tempo.png


ButtonAlt for the long press toggle. I am using 122 since it is unused and next to 121.
Physical122ButAlt.png



Logical Buttons

Logical 121 is a void we don't want it to do anything except trigger our boolean.
Logical121Void.png


Logical 122 is the DX out of Physical 122 ButtonAlt
Logical122Btn.png



Boolean
If Virtual 121 is fired then pulses Physical 122.
Boolean.png


Return to “Manuals and Howtos”

Who is online

Users browsing this forum: No registered users and 22 guests