Author Topic: Holding down two joystick buttons to control PTT (& stop VA listening)  (Read 790 times)

Cirrus

  • Newbie
  • *
  • Posts: 6
I currently use the following to control proximity chat in SC.  This forces VA to stop listening for as long as I have Joystick 1 button 30 pressed and then resumes listening after I release the button.

     Stop VoiceAttack listening
     Set text [PTTname] to 'SC Proximity PTT'
     Set integer [PTTchannel] value to 1
     Start Loop While: Joystick 1 button 30 is Pressed
     End Loop

     Set integer [PTTchannel] value to 0
     Start VoiceAttack listening

What I would like to do is modify this so that this works the same way when I have two joystick buttons held down instead of the one.  For example, holding down Joystick 2 button 30 first and then also holding Joystick 1 button 30 simultaneously to initiate PTT (and stop VA from listening until both buttons are released).

If anyone has any ideas/suggestions on how I might be able to implement this, your feedback would be very much appreciated.  Thanks in advance.

Cheers.

Cirrus

  • Newbie
  • *
  • Posts: 6
Re: Holding down two joystick buttons to control PTT (& stop VA listening)
« Reply #1 on: November 13, 2020, 04:15:32 PM »
Disregard, thanks ... got it.

I replaced the Single Condition Loop with a Compound Condition loop.

Cheers!

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Holding down two joystick buttons to control PTT (& stop VA listening)
« Reply #2 on: November 13, 2020, 05:27:24 PM »
If all you are doing is turning on and off listening, you could do that with a hotkey:
Options > Hotkeys

No loops or variables required ;)