How to make OpenGL camera moving in SFML by mouse move
<p>I've good working (this may be important) FPS camera module in my "Game Engine". Now I'm using it with WASD and Up/Down/Left/Right. I want to add possibility to move camera by mouse. It's my code I've written:</p>

<pre><code>if (event.type == sf::Event::MouseMoved)
{
    static glm::vec2 lastPos;
    glm::vec2 mousePos(event.mouseMove.x, event.mouseMove.y);
    glm::vec2 delta(lastPos - mousePos);
    delta *= -0.01;
    cam-&gt;addRotation(delta);

    sf::Vector2i center(parentWnd-&gt;getSFMLWindow()-&gt;getSize().x/2, parentWnd-&gt;getSFMLWindow()-&gt;getSize().y/2);
    lastPos.x = center.x;
    lastPos.y = center.y;

    sf::Mouse::setPosition(center, *parentWnd-&gt;getSFMLWindow());
}
</code></pre>

<p>How can I get moving my camera without cursor moving on the screen? It's working few seconds and camera locks (so I can't mouse move then I must kill process). I'd rather get event of mouse move not mouse position but SFML doesn't support that.</p>