Hi
As eXpl0it3r said, you would have to set the mouse position (according to the joystick movement)
You don't need to translate the mouse event handling, but handling the joystick event to move the mouse cursor
you would need to have an X and Y vars to store the current mouse position,
then when you move the joystick to your right, then increase X, when you move up, then decrease Y, etc, etc ... (I don't know the code for this, please query C++
)
and then, just set mouse position to (X, Y)
sf::Mouse::setPosition(X, Y); // I'm not sure of this cos I don't know C++, query the correct syntax
Hope this helps