Try to remove arrow characters printed in console

This commit is contained in:
manzerbredes 2015-05-03 09:14:30 +02:00
parent d8b1466ad9
commit 98a8e2d520

View file

@ -65,7 +65,8 @@ kbdh::Direction ConsoleController::waitArrowKeyPress()
keyPress=kbdh::Left;
while(sf::Keyboard::isKeyPressed(sf::Keyboard::Left))
{
//Wait for release
//Wait for release and try to remove arrow printed characters
std::cout << "\r" << " ";
}
break;
}
@ -74,7 +75,8 @@ kbdh::Direction ConsoleController::waitArrowKeyPress()
keyPress=kbdh::Right;
while(sf::Keyboard::isKeyPressed(sf::Keyboard::Right))
{
//Wait for release
//Wait for release and try to remove arrow printed characters
std::cout << "\r" << " ";
}
break;
}
@ -83,7 +85,8 @@ kbdh::Direction ConsoleController::waitArrowKeyPress()
keyPress=kbdh::Up;
while(sf::Keyboard::isKeyPressed(sf::Keyboard::Up))
{
//Wait for release
//Wait for release and try to remove arrow printed characters
std::cout << "\r" << " ";
}
break;
}
@ -93,7 +96,8 @@ kbdh::Direction ConsoleController::waitArrowKeyPress()
keyPress=kbdh::Down;
while(sf::Keyboard::isKeyPressed(sf::Keyboard::Down))
{
//Wait for release
//Wait for release and try to remove arrow printed characters
std::cout << "\r" << " ";
}
break;
}