Jump to content
The simFlight Network Forums

Compounding and Conditional question


SOBE

Recommended Posts

I have the paid version of FSUIPC.  Presently I have the following Joystick and Throttle buttons assigned using FSUIPC:

Joystick

8=PB,6,K38,10   -{Key press: ctl+Up}-

9=PB,8,K40,10   -{Key press: ctl+Down}-

10=PB,9,K37,10 -{Key press: ctl+Left}-

11=PB,7,K39,10 -{Key press: ctl+Right}-

 

Throttle

141=PA,2,K38,8                 -{Key press: Up}-

142=PA,4,K40,8                 -{Key press: Down}-

143=PA,5,K37,8                 -{Key press: Left}-

156=PA,3,K39,8                 -{Key press: Right}-

 

In order to double up on some button presses, I would like the Joystick buttons 8-11 to do double duty with my paddle button as a modifier so the commands on the throttle can be moved to the joystick and activated with the modifier and the current joystick buttons would remain as is if the modifier were not used.

This would appear to be involving the compound and condition programming of the init file.   Based on my readings on this forum, it would appear to me that I need two lines for each command—one with button 8 alone and one with button 8 and the modifier button (which I will just refer to in the example below as B,4).   

So the issue is how to do this.   My attempt is as follows

OLD     8=PB,6,K38,10      -{Key press: ctl+Up}-

OLD     141=PA,2,K38,8   -{Key press: Up}-

NEW   8=CP(-B,4)B,6,K38,10

NEW   X=CP(+B,4)B,6,K38,8

If the above is correct for the up command, then my question is:  How do I determine “x” or do I just use the number after the last one in the list?

Also, at present, I do not use the modifier button in FSUIPC as it is programmed directly in TrackerIR as the center command.   So how do I determine its number for purposes of substituting that number for B “4” above?  Or do I have to use it somehow in FSUIPC to gets its number?

I hope that I explained myself clearly as to what I want and if not, please let me know.

 

 

 

Link to comment
Share on other sites

6 hours ago, SOBE said:

Presently I have the following Joystick and Throttle buttons assigned using FSUIPC:

Joystick
8=PB,6,K38,10   -{Key press: ctl+Up}-
9=PB,8,K40,10   -{Key press: ctl+Down}-
10=PB,9,K37,10 -{Key press: ctl+Left}-
11=PB,7,K39,10 -{Key press: ctl+Right}-

Throttle
141=PA,2,K38,8                 -{Key press: Up}-
142=PA,4,K40,8                 -{Key press: Down}-
143=PA,5,K37,8                 -{Key press: Left}-
156=PA,3,K39,8                 -{Key press: Right}-

Any good reason you use key presses instead of the relevant FS controls? Key presses are looked up in the key press assignments list by FS and converted to the controls which you could assign to directly instead. Going so indirectly seems rather inefficient.

6 hours ago, SOBE said:

Based on my readings on this forum, it would appear to me that I need two lines for each command—one with button 8 alone and one with button 8 and the modifier button (which I will just refer to in the example below as B,4).   

No. One with the modifier selected as "pressed" and one with it not pressed. Otherwise the one with no modifier condition will always operate so you'd get two actions.

6 hours ago, SOBE said:

NEW   8=CP(-B,4)B,6,K38,10
NEW   X=CP(+B,4)B,6,K38,8

Ah, I see you've done that anyway. That's good.

6 hours ago, SOBE said:

How do I determine “x” or do I just use the number after the last one in the list?

The numbers on the left are just sequence numbers, so any free number in the list or one after the last, yes. They determine the order in which the lines are processed, so can be important when one sets a condition for another or you have a defined sequence of key presses or controls. They have no other significance.

6 hours ago, SOBE said:

So how do I determine its number for purposes of substituting that number for B “4” above?  Or do I have to use it somehow in FSUIPC to gets its number?

Just press it with the Buttons tab shown and see what FSUIPC identifies it as.

To determine which FS controls to use instead of those key presses, enable Event logging in FSUIPC and see the controls logged when you use the keys. You can even (temporarily) run FS in Windowed mode and enable the FSUIPC console log so you can see them logged in real time.

Pete

 

Link to comment
Share on other sites

Pete:

" Any good reason you use key presses instead of the relevant FS controls? Key presses are looked up in the key press assignments list by FS and converted to the controls which you could assign to directly instead. Going so indirectly seems rather inefficient."

The reason I do so is that the only FSX/P3D program that I use is the VRS Superbug and it has special commands for the plane and it is easier to use FSUIPC and Superscript to program the TM Warthog and MFDs.  I will be reviewing your comments over the next several days and attempt to do this on my own.  Thanks for the help.

On a separate note, in the VRS configuration program, I check the box to use FSUIPC calibration.  However, in the FSUIPC axis assignments, I am sending the commands as as a regular FS axis in FSUIPC.  I calibrate the axis in BOTH the game calibration and also the joystick calibration in FSUIPC.  My question is-which calibration does the axis end up using-the one from the game or the one in FSUIPC as I have that checked in the superbug?

Link to comment
Share on other sites

3 hours ago, SOBE said:

The reason I do so is that the only FSX/P3D program that I use is the VRS Superbug and it has special commands for the plane

Ah, okay. Sorry. Thought these controls were aimed at FS directly.

3 hours ago, SOBE said:

I calibrate the axis in BOTH the game calibration and also the joystick calibration in FSUIPC.  My question is-which calibration does the axis end up using-the one from the game or the one in FSUIPC as I have that checked in the superbug?

Er, the "game calibration"? Which "game" is this?

In FSX, the only calibration was not actually in FS but in the Windows Game Controllers. That most certainly is very important indeed, as that controls the values which are fed to FSUIPC in the first place unless you select "Raw" input". If you mean P3D, then I don't know. I think that added stuff of their own recently, didn't they? If so I don't think those will affect FSUIPC assignment. The game controllers setting will still be important though, again unless you select "raw".

Pete

 

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.