Yes exactly. And it always depends on the order im pressing the keys. When i first press accelerate (and keep it pressed) then steer i cannot shot. When i first hold steer, then shoot i cannot accelerate.
here is some code:
if (Game.GetInput().IsKeyDown(sf::Key::Right))
direction -= rotateSpeed;
if (Game.GetInput().IsKeyDown(sf::Key::Left))
direction += rotateSpeed;
if (Game.GetInput().IsKeyDown(sf::Key::M)) {
inertiaX += -speedRocket * sin(direction * radian);
inertiaY += -speedRocket * cos(direction * radian);
}
if (Game.GetInput().IsKeyDown(sf::Key::N) && shotTimer > 10)
shot = true;