Try to remove arrow characters printed in console
This commit is contained in:
parent
d8b1466ad9
commit
98a8e2d520
1 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue