This is how I am using my mouse pick,
mMousePos = sf::Mouse::getPosition(*this);
mWorldPos = mapPixelToCoords(static_cast<sf::Vector2i>(mMousePos));
And the picking function,
bool Entity::isPointInside(const sf::Vector2f& point)
{
if(mSprite.getGlobalBounds().contains(point))
return true;
return false;
}
Thank you.