C++ console keyboard events

前端 未结 5 1373
南笙
南笙 2020-11-30 14:57

Is there any way to get key events in a Windows console? I need a way to get keydown and keyup events quickly without a GUI. I\'ve tried using getch(), but it doesn\'t get k

5条回答
  •  遥遥无期
    2020-11-30 15:49

    There are a number of ways. GetKeyboardState would be one of the most obvious.

提交回复
热议问题