Jump to content
The simFlight Network Forums

Question about programming button (and maybe more)


jay960

Recommended Posts

Hello,

First thank you for this amazing software FSUIPC7. It is very useful and perfectly build.

I have always used it the simple way but now I want to dig more into programming some more complex stuff. I have read the manual carefully and have some things that I do not understand well so thanks in advance for the help.

  1. My first question is about programming button.
    In the manual, the format specify is :
    For keypresses: <Entry number> = <Action><Joy#>,<Btn#>,K<key>,<shifts>

    now in my INI file I have for example :
    1=PB,36,K123,8     -{Key press: F12}-
    1=PB,32,K122,8     -{Key press: F11}-

    So

    PB = the action
    36 = <Joy#>
    K123 = <Btn#>
    8 = ?
    {things in bracket} = key press

    But these two are on the same Joystick, so they should have same <Joy#> somewhere. Maybe is it the number 8 ?
    Can anybody explain the format correctly, I certainly have missed something 😑

  2. For the Action in the manual the letter P is explain simply for press or control. now in my example above it is writtent PB. What is the B for ?
    And in the manual it says if I want to repeat the key press the letter should be R. So if I want to change the above action to repeat should I write only R instead of PB ?

 

Thank you again in advance for taking the time to help.

Cheers

 

Link to comment
Share on other sites

3 hours ago, jay960 said:

now in my INI file I have for example :
1=PB,36,K123,8     -{Key press: F12}-
1=PB,32,K122,8     -{Key press: F11}-

So

PB = the action
36 = <Joy#>
K123 = <Btn#>
8 = ?
{things in bracket} = key press

But these two are on the same Joystick, so they should have same <Joy#> somewhere. Maybe is it the number 8 ?
Can anybody explain the format correctly, I certainly have missed something 😑

P is the action (Pulse).
B is the joystick - you are using "JoyLetters" so the assigned letter is used. The mapping from joyletters to ids is stored in the [JoyNames] section of your FSUIPC7.ini file.
35 & 32 are the button numbers
K123/K122 are the keys (F12/F11)
8 is the shift parameter (normal)

3 hours ago, jay960 said:

For the Action in the manual the letter P is explain simply for press or control. now in my example above it is writtent PB. What is the B for ?
And in the manual it says if I want to repeat the key press the letter should be R. So if I want to change the above action to repeat should I write only R instead of PB ?

PB is <Action><Joy#>or maybe better as <Action><JoyLetter>

Link to comment
Share on other sites

32 minutes ago, jay960 said:

Thank you very much. I understand better now.

For a complete explanation of all the parts as well as facilities for programming buttons with coditions, you should refer to the FSUIPC7 for Advanced Users manual. On page 16 a section called 

FORMAT OF BUTTON DEFINITIONS

begins.  There you'll see there are 4 alternatives for the "action" (the first letter), not just two. 

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.