Button press

I am making game game that is simple but, i need some help something. How would i make it so if you press a certain button it will display a message like, if you press the up arrow key this mesage shows up
cout << "Pressed up";?
I don't think that's worth it: http://www.cplusplus.com/forum/articles/28558/
That was just an example/
It depends on what API you're using.

See this: http://www.cplusplus.com/forum/articles/28558/

EDIT: too slow!
Last edited on
Topic archived. No new replies allowed.