Problems with GetAsyncKeyState
This is a camera that can look 360 around the Y, and 90 and -90 up the Y axis, and is meant to do this only when an ALT key is pressed. Other wise (currently) it moves with the mouse Y or X as according to how you are moving the mouse (horizontal when sideways, vertical when forwards).
//do other stuff
This all works great EXCEPT that while it works when I hold alt, it doesn't do ANYTHIGN when I release, but if I hold it again it works fine, then it'll take in mouse signals like it's supposed to. I've tried other suggestions I found responding to someone elses problems with GetAsyncKeyState() on these forums, but it didn't change anything except make it look fancy lol.
What I need is to hold alt, and it does the if statement, and when I let go of alt, for it to do the else statement. Would it work as a switch (I haven't tried because I doubt it'll change anything according to logic, though that doesn't apply to C++ ;) lol). Any thoughts?
(Anyone with two cents on how to make it not require a second alt restroke to turn it off and allow my default to happen is appreciated. I've tried macros that "mask" the most significant bit to do this, and I've tried setting it every call (virtually) to being let go, and this simply causes jittery performance from it constantly thinking i'm letting go and then reholding ALT. I am willing to retry these, I'm just stating...)