Mouse freezes after setting position in standalone game

Hello,

I’ve exposed FViewport->setMouse() to blueprints. When calling setMouse(), there is a very noticeable delay in mouse movement when the mouse updates its position. This happens when I run as a standalone game, but not when I play in the editor.

I’ve set up a blueprint to move the mouse back to the center of the screen if it gets too far away. This works perfectly in the editor - If I drag my mouse in one continuous motion, the cursor will teleport back to the center but will keep moving smoothly. In the standalone game, when the mouse teleports back to the center, it freezes for at least half a second.

I’m trying to have fluid movement based on the mouse axes values and this makes the movement pretty jarring. Is there something I’m missing?