Jump to content

Recommended Posts

Posted

I used the TARGET software to bind the "Drop bombs mode toggle" keybind [LWIN+B] to a button on my Warthog joystick, specifically button H2U.  The event is of type "pulse" and it is attached to the "press" event.  When I press this button in-game it actives the bombs mode toggle as expected, but it also drops the bombs (keybind "B") which is unexpected and unwanted.  It acts as if the game is receiving two signals "LWIN+B" and "B".  I'd appreciate help diagnosing/solving this problem.  Thanks.

 

 

Posted
8 minutes ago, Monash said:

I used the TARGET software to bind the "Drop bombs mode toggle" keybind [LWIN+B] to a button on my Warthog joystick, specifically button H2U.  The event is of type "pulse" and it is attached to the "press" event.  When I press this button in-game it actives the bombs mode toggle as expected, but it also drops the bombs (keybind "B") which is unexpected and unwanted.  It acts as if the game is receiving two signals "LWIN+B" and "B".  I'd appreciate help diagnosing/solving this problem.  Thanks.

 

 

 

Put a small delay between LWIN and B.

Posted (edited)
31 minutes ago, dburne said:

 

Put a small delay between LWIN and B.

 

Thanks for helping me out!  I've added increasingly values for delay, from 1 to 500 milliseconds, but the issue remains.  The added delay has perhaps made some improvement, its hard to tell, but the problem persists.

Edited by Monash
Posted
3 minutes ago, Monash said:

 

Thanks for helping me out!  I've added increasingly values for delay, from 10 to 500 milliseconds, but the issue remains.  The added delay has perhaps made some improvement, its hard to tell, but the problem persists.

 

Sorry that is all I can think of however I have also been away from using their software for a while. It really should only take around 50ms if that.

Posted (edited)
3 hours ago, Monash said:

I used the TARGET software to bind the "Drop bombs mode toggle" keybind [LWIN+B] to a button on my Warthog joystick, specifically button H2U.  The event is of type "pulse" and it is attached to the "press" event.  When I press this button in-game it actives the bombs mode toggle as expected, but it also drops the bombs (keybind "B") which is unexpected and unwanted.  It acts as if the game is receiving two signals "LWIN+B" and "B".  I'd appreciate help diagnosing/solving this problem.  Thanks.

 

 

The game has a peculiar way of determining the status of your keys.  It's basically polling say 60 times per second which keys are pressed.  This can lead to issues as the one you described, when a pulse input is so short that it slips unregistered between 2 polling events.

 

There's an easy solution.  You have to split your LWin+B into following sequence of commands:

1) LWin press and hold

2) B press and hold

3) B release

4) LWin release

 

The combination of HOLDING the keys pressed (event type in TARGET: "press") and a delay of 30-60 ms between each of these inputs gives the game enough time to actually register the key state. That's what I've been using for years. Avoid "pulse" inputs with this game.

 

Edited by JG27_PapaFly
Posted

Here is a sequence showing how I coded a similar command (LShift+B). I added 30 ms delay to each step following the first one.

1.jpg

2.jpg

3.jpg

4.jpg

Posted

Brilliant.  Thank you.  This worked for me. 

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...