I'm using Borland C++. I'm going to make a game without graphics. Using the arrow keys. How do you get the program to sense the arrow keys are being pushed?
I'm using Borland C++. I'm going to make a game without graphics. Using the arrow keys. How do you get the program to sense the arrow keys are being pushed?
If you are making it using the Windows API you can use the WM_KEYDOWN message and check for the wParam for the key. The arrow keys are: VK_LEFT, VK_UP, VK_RIGHT, and VK_DOWN.
If you are doing console or else, then I am not sure, sorry.