Jump to content
The simFlight Network Forums

two buttons for the same action


J-Aviator

Recommended Posts

Hi all,

I'm looking to a way to assign a key command to vpilot for the push to talk.

So I have 2 joystick connected via usb and I would like to assign both joystick the same keyboard switch.

So no matter which joystick I use for the push to talk in viplot.

Thanks

J

Link to comment
Share on other sites

50 minutes ago, J-Aviator said:

Hi all,

I'm looking to a way to assign a key command to vpilot for the push to talk.

So I have 2 joystick connected via usb and I would like to assign both joystick the same keyboard switch.

So no matter which joystick I use for the push to talk in viplot.

Thanks

J

If I understand correctly what you want to do it seems to me you just need to assign the same keystroke that you are using for the Vpilot push to talk to both joystick buttons.
In the example below, Button 4 on joystick Y is being setup to sent the keystroke "K".  After making that assignment (click OK), switch to your other joystick and assign keystroke "K" again in the same way. The only change will be that the Joy# (and maybe the Btn#) will be different for the second joystick.

Note that if you are not using letters to represent your joysticks, you will have a number in place of the Y in my example.

Al

image.png.b4240aa2ed5cefe0b2616b546ee0dac7.png

Link to comment
Share on other sites

9 minutes ago, J-Aviator said:

Thanks, this is what I like to do.

Is possible to assign a button from another joystick? Say for example if I press button "A" from joystick 1 will simulate I'm pressing the button "X" from joystick 2?

Thanks

J

Yes, if you assign the same action to both button "A" and button "X". In my example above both buttons will send the same "K" key. So you could say each button simulates the other. It will make no difference which button you push.

 

Link to comment
Share on other sites

5 minutes ago, ark1320 said:

Yes, if you assign the same action to both button "A" and button "X". In my example above both buttons will send the same "K" key. So you could say each button simulates the other.

 

From this page I can only assign key from the keyboard, when I try to press the button on the other joystick do not rec any switch.

image.png

Link to comment
Share on other sites

After making the first assignment for Btn  8 on Joystick A did you click OK and close the window? And then open the window again and push the button on the other joystick? Both joysticks have to be connected and recognized by FSUIPC7.

If you just open the FSUIPC7 button window and push the button on your second joystick, does FSUIPC7 see it?

Al

Link to comment
Share on other sites

13 minutes ago, ark1320 said:

After making the first assignment for Btn  8 on Joystick A did you click OK and close the window? And then open the window again and push the button on the other joystick? Both joysticks have to be connected and recognized by FSUIPC7.

If you just open the FSUIPC7 button window and push the button on your second joystick, does FSUIPC7 see it?

Al

Yes both Joystick are connected, and I'm using all others button so far without any problem

Link to comment
Share on other sites

6 minutes ago, J-Aviator said:

Yes both Joystick are connected, and I'm using all others button so far without any problem

I suppose there could be a problem with that particular button on the second joystick. For example, it could be that button is being "trapped" (used by) some other app and prevented from "getting to " FSUIPC7.  As a test, if you just open the FSUIPC7 button window and push that button does FSUIPC7 see it?

Link to comment
Share on other sites

3 minutes ago, ark1320 said:

I suppose there could be a problem with that particular button on the second joystick. For example, it could be that button is being "trapped" (used by) some other app and prevented from "getting to " FSUIPC7.  As a test, if you just open the FSUIPC7 button window and push that button does FSUIPC7 see it?

yes, it sees both button from from both joystick by FSUIPC7

Link to comment
Share on other sites

1 minute ago, J-Aviator said:

yes, it sees both button from from both joystick by FSUIPC7

OK. And just to confirm, after making the first button assignment (Joy# A, Btn# 8), you click OK  and close the FSUIPC7 window, then reopen the button window and try to make the second button assignment. When you reopen the button window all the FSUIPC7 fields should be blank, nothing in the Joy# or Btn# fields until you press the button on the second joystick. And what you are saying is when you press that second button all the FSUIPC7 fields stay blank, nothing shows up in the Joy# , Btn # fields.  Is this correct?

Al

 

Link to comment
Share on other sites

Another thing you could try just for testing is to pick a different key for PTT -- maybe K or  F1, etc., just to see if that makes any difference.

As a test, using the method I described above I was able to setup buttons on two different joysticks to send the keystroke I had assigned in VPilot for PTT .

Al

 

Link to comment
Share on other sites

6 hours ago, J-Aviator said:

I solve the problem for now using a keyboard button to use as PTT in vpilot and I assign a joystick command to run that button from the keyboard to be press.

Thanks for the help.

Yes, that is exactly the approach I was trying to suggest above. Glad you got it working.

Al

  • Like 1
Link to comment
Share on other sites

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...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.