SFML community forums

Help => General => Topic started by: gingger on January 06, 2018, 08:53:02 am

Title: keyboard events
Post by: gingger on January 06, 2018, 08:53:02 am
 i just want to when you pres the exit button or press esc the window closes.
         // help here // i wont it to close the program when you pres the escape key
         if (event.type == sf::Event::Closed || event.type == sf::Event::EventType::KeyPressed Escape)
   
Title: Re: keyboard events
Post by: eXpl0it3r on January 06, 2018, 10:30:06 am
So you can't even provide a description? Read the official tutorials.