Sign in to follow this  
Rocky

Landing Gear Disable

Recommended Posts

Hello!After having all the engine instsruments working now, I

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

This possible in CYou can set up keyboard hook and control what plane will do when some key is pressed.

Share this post


Link to post
Share on other sites

This is a bad idea, because it will not work if the user has redefined the key used for the gear, using the "Controls > Assignments" menu. For example, on my system, I use the key to operate the gears.I have a better idea, which I think will work in XML also (even if I don't know XML at all, I only develop C gauges). Instead of setting up a keyboard hook to watch the pressed key, you can detect the event of operating gears through the corresponding variables. Just watch the gear value, and as soon as it is greater than 0, you know the user has pressed the corresponding key.Then you can decide:- let the gear operate if all the conditions are OK, or- trigger a key event to retract the gear if the conditions are not OKYou may believe that the gear will extend and come back afterwards, but in fact the reaction time is so short that it is invisible and works perfect.Hope this helps...Eric

Share this post


Link to post
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
Sign in to follow this