ALBERTO22 Posted July 11, 2008 Report Posted July 11, 2008 Pete , Would be possible to have in FSUIPC , in "Keys" , something like you have in " Buttons" related to keep the key pressed ? This means to use the keys of a hacked keyboard connected to a toggle switch , without the key remaining repeating . Regards. Alberto
ALBERTO22 Posted July 11, 2008 Author Report Posted July 11, 2008 Pete , Would be something like " do not repeat while held ". This in " Keys ". Regards Alberto
Pete Dowson Posted July 11, 2008 Report Posted July 11, 2008 Would be something like " do not repeat while held ". This in " Keys ". Actually, it isn't under my control. Unlike buttons (which don't auto-repeat -- it is FSUIPC adding that facility), key presses sent through Windows are auto-repeated by Windows. I would have to somehow ignore messages from Windows telling me a key has been pressed again (WM_KEYDOWN). I really don't want the complication of keeping a record of which keys were already down without a WM_KEYUP message -- it is Windows job to see to all of that. However, there is a "previous key state" flag provided with WM_KEYDOWN. I'll have a look at how that behaves, to see if I can use it at all. If it shows when a repeated KEYDOWN is sent, then maybe I can add the option. [LATER] Yes, you are in luck! That flag does tell me whether it is a repeat or not, so i can add the facility. Look out for it on the next version.(s). Regards Pete
ALBERTO22 Posted July 11, 2008 Author Report Posted July 11, 2008 Great news Pete . We flight simulator guys have to put in someplace your estatue , you are exceptional . God bless you . Best regards Alberto
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now