Original Post
I''m having a problem with implementing a way to check if two keys are pressed at the same time in VC++. For example, I have it so that if they press the up key(VK_UP), the camera would move forward, and the same for other keys, but what if the user wants to move diagonally by pressing the up and right key at the same time? I tried:
case VK_UP && VK_RIGHT:
and typed in the necessary code(call to a function to setup movement), but it didn''t work(acted just as if there wasn''t an && there). Obviously, there is a different way to do this, but I don''t know. Any help is appreciated.