Jump to content
The simFlight Network Forums
PhillyPennPilot

assigning 1 command to 2 joystick buttons in FSUIPC

Recommended Posts

Sorry if this has been mentioned already, but I couldn't the answer in and I didn't see it in the manual ... and I'm very new to FSUIPC.

 

Is it possible to assign one command to two buttons -- pressed simultaneously -- on a joystick? Basically, I'd like to reassign the trigger button (which it seems is often used for brakes) as a kind of Shift or Control key for other buttons on the joystick. The idea is to be able to perform actions by simply just pressing the trigger and then another button with one hand and thus not have to use my other to press a separate key on the keyboard, which something I know how to do already.

 

Hope that makes sense. Thanks!

Share this post


Link to post
Share on other sites

Is it possible to assign one command to two buttons -- pressed simultaneously -- on a joystick? Basically, I'd like to reassign the trigger button (which it seems is often used for brakes) as a kind of Shift or Control key for other buttons on the joystick. The idea is to be able to perform actions by simply just pressing the trigger and then another button with one hand and thus not have to use my other to press a separate key on the keyboard, which something I know how to do already.

 

Buttons are not tested "simultaneously". You simply make the actions of one or more buttons conditional on the state of one or more other buttons with the latter pressed and held first -- as you then go on to describe, in fact.

 

This is covered in the manual. You need to edit the FSUIPC INI file to do these things, but it isn't hard. See the "Compound Button Conditions" section, around page 16 in the Advanced User's manual.

 

Pete

Share this post


Link to post
Share on other sites

Yes you can and it works splendidly. You will have to do it by editing the FSUIPC.ini manually in the [buttons] section. (FSX\Modules\FSUIPC.ini) All the information is available on page 21 "COMPOUND BUTTON CONDITIONS" of the "FSUIPC for Advanced Users.pdf".  (FSX\Modules\FSUIPC Documents\FSUIPC for Advanced Users.pdf)

 

A good trick prior to getting started is to make a drawing of your joystick and label each button with the button number and it's intended future assignment(s) that way once you get going it will go much easier.  Here's an example -

 

29=CR(-0,8)0,5,C65615,0 ;Trim Up   Button 8 = not pressed, Button 5 = pressed as a repeat for the control - trim up.
30=CP(+0,8)0,5,C65759,0 ;Flaps Up Button 8 = pressed, Button 5 = pressed as a non-repeat for the control - flaps up .
31=;SPARE FOR 5
32=;SPARE FOR 5
33=CR(-0,8)0,6,C65607,0 ;Trim Down   Button 8 = not pressed, Button 6 = pressed as a repeat  for the control - trim down.
34=CP(+0,8)0,6,C65758,0 ;Flaps Down  Button 8 = pressed, Button 6 = pressed as a non-repeat  for the control - flaps down .
35=;SPARE FOR 6

36=;SPARE FOR 6  

 

Hope this helps,

Roman

 

OOPS! stepped on Pete's post :-( 

Share this post


Link to post
Share on other sites

Buttons are not tested "simultaneously". You simply make the actions of one or more buttons conditional on the state of one or more other buttons with the latter pressed and held first -- as you then go on to describe, in fact.

 

This is covered in the manual. You need to edit the FSUIPC INI file to do these things, but it isn't hard. See the "Compound Button Conditions" section, around page 16 in the Advanced User's manual.

 

Thanks, Pete.  Gosh, I somehow missed this in the manual (and I bet that's not the first time you've heard that!), and I haven't yet looked at the Advanced User guide ... but I'm about to right now.  :)  I think I get how this should work.  Going to play around with it now.  Cheers!

 

 

 

Yes you can and it works splendidly. You will have to do it by editing the FSUIPC.ini manually in the [buttons] section. (FSX\Modules\FSUIPC.ini) All the information is available on page 21 "COMPOUND BUTTON CONDITIONS" of the "FSUIPC for Advanced Users.pdf".  (FSX\Modules\FSUIPC Documents\FSUIPC for Advanced Users.pdf)

 

A good trick prior to getting started is to make a drawing of your joystick and label each button with the button number and it's intended future assignment(s) that way once you get going it will go much easier.  Here's an example -

 

29=CR(-0,8)0,5,C65615,0 ;Trim Up   Button 8 = not pressed, Button 5 = pressed as a repeat for the control - trim up.
30=CP(+0,8)0,5,C65759,0 ;Flaps Up Button 8 = pressed, Button 5 = pressed as a non-repeat for the control - flaps up .
31=;SPARE FOR 5
32=;SPARE FOR 5
33=CR(-0,8)0,6,C65607,0 ;Trim Down   Button 8 = not pressed, Button 6 = pressed as a repeat  for the control - trim down.
34=CP(+0,8)0,6,C65758,0 ;Flaps Down  Button 8 = pressed, Button 6 = pressed as a non-repeat  for the control - flaps down .
35=;SPARE FOR 6

36=;SPARE FOR 6  

 

Thanks Roman.  It doesn't totally make sense ... yet.  But I'm just delving in now.  Appreciate the help.  I'll check back in if I get lost -- which is very possible. ;)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

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