Jump to content
The simFlight Network Forums

Function on button release


Recommended Posts

I have a problem with assigning functions to a button.

When I asign a function on button press and on button release,

the button release function only works when cycling the button.

Depressing alone does not activate the function defined on button release.

I want to define a switch for gear up and gear down.

With the toggle function in FSUIPC it is the same, just depressing makes no function,

I have to cycle again to get the depress function.

I use a keyboard encoder card on a remote pc sending via wideclient the keyboard commands

to fsuipc on server computer.

I noticed that with all FSUIPC versions I could test so far.

Thanks

Gilles

Link to comment
Share on other sites

  • 2 weeks later...

When I asign a function on button press and on button release,

the button release function only works when cycling the button.

Sounds like the button you are using is a toggling button -- one which a press-release action switches it on and off, alternately. Buttons on bedside lights (for example) operate like that.

I use a keyboard encoder card on a remote pc sending via wideclient the keyboard commands

to fsuipc on server computer.

Keyboard commands? Are you holding the key pressed when the button is pressed and releasing it when released? Where is the keypress defined -- in FSUIPC or in WideClient?

It is not a good idea to use keypresses in any case. Why not assign direct ot the relevant FS controls?

I think you need to be more explicit on what you are actually doing!

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.