Hi, I'm new to this board! I've been tinkering with SFML on a hobby-programming basis for about 3 years.
I'd like to create mouse motion akin to the old Oxyd marble games. It may be a very simple and common idiom for all I know, but I've got a little hangup.
My current approach is something like this:
```
lastMouse = mouse x/y from last frame;
curMouse = mouse x/y this frame;
newMouseDirection = curMouse - lastMouse;
newMouseDirection *= reducingScaleFactor;
marble.velocity += newMouseDirection;
//add friction and whatnot
```
The problem is that when the (set-to-invisible) cursor goes to (say) the left border of the screen, leftward mouse motion no longer impels the marble, because lastMouse.x was 0 and curMouse.x is still 0. Same principle with any border of the screen.
I feel like I need the capability to set the cursor position, so that if it hits a screen border, it appears on the opposing side, or whatever, so that motion can be continued.
Does SFML provide this means, or do I need to access some kind of system API to handle this mouse/cursor issue? Can SFML "read" the mouse motion if the cursor is already at 0,0 coordinates and the direction is towards negative values?
Thanks!