Jump to content
The simFlight Network Forums

Strange behavior when using button conditionals?


mikan173
 Share

Recommended Posts

Hello,

I am having a strange behavior when trying to use conditionals on buttons. I mapped my pov hat to WASD to control camera horizontally and set up conditions in the ini file so that when trigger button is pressed, the pov hat controls vertical movements instead (Q and Space). However I noticed some issues here as shown in the video. It seems like after I release everything the Q button is still being pressed. If I switch to another window and switch back the input will stop.

https://imgur.com/a/vtsoqEf

Steps to reproduce: Move pov hat down -> press trigger -> release trigger -> release pov hat.

If I release pov hat before releasing the trigger everything works fine.

Part of my config file:

[Buttons]
PollInterval=25
ButtonRepeat=20,10
1=CR(-B,0)B,36,K83,8 	-{Key press: S}-
2=CR(+B,0)B,36,K81,8 	-{Key press: Q}-

Thanks!

FSUIPC7.ini

Link to comment
Share on other sites

On 5/8/2022 at 11:14 AM, mikan173 said:

Steps to reproduce: Move pov hat down -> press trigger -> release trigger -> release pov hat.

This is incorrect and should be:
     press trigger -> Move pov hat down -> release pov hat -> release trigger
i.e. you should set the trigger button before you activate the button to which the trigger applies.

Activating the trigger once a repeat assignment has been activated on the non-triggered assignment is going to cause issues - you just shouldn't do this. I don't think there is anything I can do about this, due to the way repeat assignments are implemented. It has been this way for many years and this is not something that I think is worth looking into - just use the trigger in the correct order.

John

Link to comment
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...
 Share

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