bool InputManager::KeyPressed(int key, sf::Event Event)
{
if (Event.type == sf::Event::KeyPressed)
if (Event.key.code == key)
return true;
return false;
}
I'm using this code to handle input in my game but this function can't receive 2 key presses in the same frame(even with 2 separate function calls). Does anybody have any ideas to fix this?