SFML community forums
Help => General => Topic started by: krrice on November 12, 2011, 09:54:01 pm
-
I m following the tutorials on 1.6 .The one on opengl. When I try to compile it give me errors on the key events.
this is the line giving the errors:
if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
App.Close();
I have read that you use keyboard instead of key but what would the line of code be?
Is there a code sheet showing the differences and how to write them?
-
Look at the online documentation, it is up to date.