Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - loadsaEmone

Pages: [1]
1
General / Input won't work
« on: September 28, 2011, 08:25:54 pm »
Ah, I guess that makes sense. Thanks man.

2
General / Input won't work
« on: September 28, 2011, 07:59:27 pm »
Code: [Select]

#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.

Pages: [1]