#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <iostream>
int main()
{
sf::RenderWindow App(sf::VideoMode(512, 512, 32), "WHY!");
while(App.IsOpened())
{
if(App.GetInput().IsKeyDown(sf::Key::Escape))
{
std::cout << "dddd";
}
App.Display();
}
}
I feel as if the above code should work, but it doesn't. Am I missing something obvious, because for the life of me I can't see what.