des/ndctt2021 #1
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ void Game::processEvents(InputState & inputState) {
|
|||
if (sf::Keyboard::isKeyPressed(sf::Keyboard::A)) {
|
||||
inputState.enableAI = !inputState.enableAI;
|
||||
}
|
||||
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Q)) {
|
||||
exit(0);
|
||||
}
|
||||
|
||||
inputState.down = sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Down);
|
||||
inputState.up = sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Up);
|
||||
|
|
Loading…
Reference in a new issue