March 4, 200422 yr This possible in CYou can set up keyboard hook and control what plane will do when some key is pressed.
March 11, 200422 yr Author 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 My Web Site
Create an account or sign in to comment