1
Window / [SOLVED] Keyboard direct input isKeyPressed not working
« on: July 04, 2014, 05:20:10 am »
I'm currently playing around SFML for the first time. I initially made my player movements with Events but it was always delayed. So I tried this
This come from the documentation, but nothing move in my game.
It seems really simple, do I forget something ?
Edit : Forgot to say, its not in a PollEvent loop
if( sf::Keyboard::isKeyPressed( sf::Keyboard::Up ) )
{
player.move(0, -5);
}
{
player.move(0, -5);
}
This come from the documentation, but nothing move in my game.
It seems really simple, do I forget something ?
Edit : Forgot to say, its not in a PollEvent loop