Use device button as modifier for extra buttons

Discussion in 'Wish Lists' started by Mikeloto, May 31, 2022.

  1. Mikeloto

    Mikeloto Registered

    Joined:
    May 31, 2022
    Messages:
    2
    Likes Received:
    3
    Hi, the basic idea around this like on other simulations softwares is to define a button as Modifier then when I press this button i have n_buttons * 2 on the same hardware

    For example on 10 buttons addon wheel can use this modifier and then have 9 * 2 = 18 commands to use, and so on

    Thanks so much and rFactor2 forever !!
     
    grudevart, oikworld and McFlex like this.
  2. Stevy

    Stevy Registered

    Joined:
    Aug 8, 2015
    Messages:
    433
    Likes Received:
    731
    I just wanted to write a wish, but somehow thought let's just do a quick search if I will find a similar thread and then I found this here.
    I have the same wish for rf2, especially now with the new TC/ABS settings.

    So I have button X for function X
    But when I press button X + button Y I get function Y
    And when I just press button Y I get function Z

    One new thread saved :D
     
  3. Matt21

    Matt21 Registered

    Joined:
    Jan 15, 2012
    Messages:
    330
    Likes Received:
    251
    good idea
    with keyboard some preset function are combied: key + control

    for players with wheel without many buttons it is a good opportunity
     
  4. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    361
    Likes Received:
    362
    That's what I thought some time ago.

    I had to make a small program whose trick is that it recognizes all steering wheel buttons and, in addition, all combinations (using the joyGetPosEx system function).

    Since I can't simulate steering wheel button presses I perform a key press.
    I set those functions on the keyboard and the program assigns which button combination presses which key.
    It would be nice if this function could be included in rF2 natively as my method is not the most orthodox.
     
  5. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    361
    Likes Received:
    362
    The heat and lack of sleep has pushed me to start programming.
    I share with you my method:

    https://mega.nz/file/GRJy0b6A#5MV2WaSpXtmojVEOi5wV5CBCfhS79neV0v-H0QCmEfQ

    No installation is needed, just unzip in a folder and run (I would put it in the root folder of rFactor to have it located):

    Its use is simple and self-explanatory. If you have any questions or suggestions, I will be glad to help you.

    I hope it will help you while there is no native solution in rF2.
    @Matt21 @Mikeloto
     
  6. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    361
    Likes Received:
    362
    UPDATE

    I have improved some process and included a new feature.

    In addition to being able to use button combinations, it is now possible to define how many keystrokes occur.
    The purpose of this is to be able to, for example, adjust the braking distribution x points forwards and backwards.
    I'm sure you will think of other uses.

    The previous link is no longer valid, the new one is:
    https://mega.nz/file/XIwDgDwK#RgmWeKoH5L1YHb-NOh3vF6FLoBrLXmGqEfozaDHGc_o

    upload_2022-7-18_18-27-42.png

    Here is a brief summary of how to configure it:
    At the top right is the device selector and access to edit the configuration file (INI).
    There are 18 assignments available of which 8 can be set to make you perform up to 10 consecutive keystrokes.
    Click on a button and a dialog box will appear in which we will enter the description that will appear on that button.
    I recommend entering, in addition to the description, the key to be pressed:

    upload_2022-7-18_18-32-26.png

    A second dialog box is then displayed requesting the key to be pressed.
    Important: Stop at this step. If you will only use one button you can continue.
    If you are going to use combinations of two or more buttons you must press them, hold them down and click OK with the mouse.
    (requires juggling skills, I know, but it has to be like this).

    upload_2022-7-18_18-35-9.png

    If you use only one button, this screen is displayed, in the combinations directly request compliance.

    upload_2022-7-18_18-41-11.png

    All that remains is to confirm the action and you are ready to go.

    You can open the program before or after starting rFactor.
    You can start/end the process and set the parameters on the fly.
    In full screen it may not work, or it may do it randomly.
    And I can't think of anything else to tell you, I hope I have fulfilled some wish.
     
  7. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    361
    Likes Received:
    362
    Never say never ever.

    It is preconfigured for the rFactor2 v1.1130 release candidate.
    If you use a different version you must edit the ini file (remember, there is an access on the top right)
     
  8. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,346
    Likes Received:
    6,572
    @Brutten you should make a thread in the third party section, I think many would find that useful. (Ok, I haven't tried it yet myself, but I have faith :D)
     
  9. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    361
    Likes Received:
    362
    Thank you @Lazza

    I humbly think (or believe) that it is something so small, and that it can be done for example with joytokey, that I did not think it necessary to put it as an interesting or original contribution.

    The only thing I did is to extract some of the code from my management system and reuse it to be able to use it independently.

    It works decently for our group, but that is not a guarantee of success and the code is slightly different (for example the issue of multiple keystrokes has not yet been implemented in my software, it is an idea that I came up with on the fly and I'm already implementing it).

    If I had received some feedback on the operation I would have started a thread about it.

    Still I will listen to you, maybe you are right.
    Thanks for your interest.
     
  10. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    361
    Likes Received:
    362

Share This Page