How to control the arrow with the arrow keys move in c++

HKen's Avatar
Light Poster
hi all,
How to control the arrow with the arrow keys move,Press "ENTER" key enter next interface.use left,right,up,down control.
such as:

--> menu-1 menu-4
menu-2 menu-5
menu-3 menu-6
thanks.
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
It's OS-specific. In Windows for example you could call GetKeyState(), and/or process the relevant WM_CHAR messages in your message loop.
HKen like this