c++ how to detect Enter button input

Started by
9 comments, last by Servant of the Lord 9 years, 3 months ago

i mean keyboard button and im just using plain c++

There is no "plain" C++. You're always using something. In this case, you are outputting text to a text console that Microsoft Windows creates for you.

Using the standard C++ library, you can't get keyboard presses or mouse movement. However, you can use Window-specific functions from Window's APIs to get keypresses.

But it'd probably be better to continue to try to get SFML to work.

This topic is closed to new replies.

Advertisement