1
Window / Bottleneck sf::Event
« on: July 09, 2008, 07:26:41 pm »
Hi,
I tried it out, the result is the same
I tried it out, the result is the same
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
...initialize and go to main loop...
sf::Event Event;
App.GetEvent(Event);
const sf::Input& Input = App.GetInput();
bool EscapeKeyDown = Input.IsKeyDown(sf::Key::Escape);
if (EscapeKeyDown)
{
App.Close();
}
...render some opengl stuff...