How to handle keyboard input in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to handle keyboard input in c++?

How would you do this? In Java you could do this by addKeyListener();

18th Mar 2017, 11:48 PM
George
George - avatar
1 Answer
+ 1
in Java, you use this method on a GUI library like jframe. Likewise, in c++ you'll need a GUI library like glfw, smfl, qt, etc. each library has it's own method for input.
19th Mar 2017, 2:16 AM
Nikunj Arora
Nikunj Arora - avatar