Hi,
My function is working well but the mouse is moving a bit faster than the view and that's really ennoying
Is there a way to synchronize them ?
if (event.type == Event::MouseMoved) {
if (!moving || !checkMouseOnGameView(static_cast<Vector2f> (Mouse::getPosition(window)), window))
break;
p1IconSprite.setColor(Color(0, 0, 0, 0));
const sf::Vector2f newPos = sf::Vector2f(event.mouseMove.x, event.mouseMove.y);
Vector2f deltaPos = oldPos - newPos;
deltaPos.x *= accumZoom;
deltaPos.y *= accumZoom;
gameView.move(deltaPos);
window.setView(gameView);
oldPos = newPos;
}