Answer the question
In order to leave comments, you need to log in
How to implement a response to key combinations?
How in SFML for two simultaneously pressed keys to perform an action so that actions for each of the keys are not performed separately?
For example:
if (sf::Keyboard::isKeyPressed(sf::Keyboard::S)) {
function1();
}
if (sf::Keyboard::isKeyPressed(sf::Keyboard::D)) {
function2();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question