Yeah, sorry. So this is my draw routine (it is called every time in the main game loop):
window.clear(sf::Color(0, 0, 0, 255));
window.draw(cursor);
window.setView(camera);
// start drawing
terrain.draw();
window.draw(player);
// end drawing logic
window.display();
where cursor is the sprite of the cursor
camera is the sf::View() (a very normal sf view, no special settings, it just follows the player around)
and player is our player sprite.
What I basically want to accomplish is replacing the mouse default icon with something else. Right now that code makes the cursor follow the mouse but when the camera moves it's left behind.
Also If I set the cursor sprite to be:
cursor.setPosition(sf::Mouse::getPosition(window).x, sf::Mouse::getPosition(window).y);
I get 150px on top of the actual cursor position.