SFML community forums

Help => General => Topic started by: krrice on November 12, 2011, 09:54:01 pm

Title: sfml vs sfml 2.0 key events
Post 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?
Title: sfml vs sfml 2.0 key events
Post by: Laurent on November 12, 2011, 11:09:58 pm
Look at the online documentation, it is up to date.