1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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

Discussion in 'C++' started by HKen, May 20, 2012.

  1. HKen

    HKen New Member

    Joined:
    May 18, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    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. :worried:
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    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 likes this.

Share This Page