I'm not understanding why the following statements are working the way they are:
Here, while F4 or F6 are being held, the code will run. So far so good.Code:while ( GetAsyncKeyState(VK_F4) || GetAsyncKeyState(VK_F6))
But here, the way I see it, the code should run until F4 or F6 are pressed, but it will only stop after I hold each of them a couple of times(?).Code:while ( !GetAsyncKeyState(VK_F4) || !GetAsyncKeyState(VK_F6))
And if I change the || for &&, only one button is needed to stop the loop, while in this case both should be pressed.
What am I missing?
I'm sorry if this is something obvious.