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

Light Poster
20May2012,16:03   #1
HKen's Avatar
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.
Mentor
21May2012,13:14   #2
xpi0t0s's Avatar
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