Can you move the in-game cursor with C++?

I’m trying to write some code that moves the cursor around on the game screen. However, I only want to manipulate the game’s cursor (where the engine thinks the mouse is), not the Windows mouse pointer. So, if the game is windowed and the user’s cursor is outside the window, the game cursor stops at the edge of the game window - and I’d like to be able to move it around (say, with a gamepad or something) independent of the Windows cursor.

I’m implementing this as a plugin, so blueprints are a no-go. Any idea if this is possible and what some helpful engine functions might be? I’ve tried FViewportClient::MouseMove(x,y), but it doesn’t seem to be doing anything.

Use SetMouse(x,y) instead.
D.