- #1
Ephysics
- 3
- 0
hi!
I've started making my own games in Borland C++ 5.0
I want to learn how to detect the user's input of arrow keys (for eg. when a user presses UP,DOWN ,RIGHT or LEFT)
Can somebody please post a short tutorial on detecting arrow keys?
Thank You
Ephysics
PS-
Is this correct ?
int c = getch();
if(c == 0)
{
c = getch();
c*=256;
}
I've started making my own games in Borland C++ 5.0
I want to learn how to detect the user's input of arrow keys (for eg. when a user presses UP,DOWN ,RIGHT or LEFT)
Can somebody please post a short tutorial on detecting arrow keys?
Thank You
Ephysics
PS-
Is this correct ?
int c = getch();
if(c == 0)
{
c = getch();
c*=256;
}