1
General / Input won't work
« on: September 28, 2011, 08:25:54 pm »
Ah, I guess that makes sense. Thanks man.
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.
#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();
}
}