Mouse issue in cooked game over RDP

When I launch a standalone/build game over RDP I have a mouse issue (TPP game). I can only rotate the camera +/- 270 degrees either way. I suppose the issue is that the app detects that the hidden cursor would move out of the window bounds and clamps the movement. This happens both in windowed and fullscreen modes. Game is built using development settings, win64. Problem does not exist when using Parsec.

Any ideas on how to fix that?