sravan_reddy001 said:
how can i handle the arrowkeys whether they are pressed or not.
i had used the w,s,a,d keys to do that function. I want to make that
with the help of ArrowKeys
ANSI C offers a line-based interface to the keyboard. User composes a line,
types return, and the full line is fed to the program. It is very good for a
lot of purposes, but not for interactive graphics.
However curses on Unix or conio on DOS / Windows will offer a function
called kbhit which probably does what you want. There are ways of getting
arrow keys by specifying key codes rather than characters. However don't ask
me about the details, it is so long since I've used it.