Anything that locks the cursor doesn't work when accessing Roblox/Studio over Parsec (remote desktop software)

Description

When accessing Roblox or Roblox Studio through Parsec, mouse locking does not work whatsoever in any context. This breaks the following:

  • Camera control when holding right-click
  • Shift lock
  • Any games that lock the mouse for a similar reason

This is frustrating when playing games, but it’s workflow-breaking for remote work. I cannot properly use Studio when away from my workstation because of this.

I have reported this behavior to Parsec staff (along with many other people), and they’ve stated it’s an issue with Roblox.

Steps to Reproduce

  1. Connect to a remote desktop using Parsec
  2. Launch Roblox or Roblox Studio on the remote desktop
  3. Enter a game OR open a game in Studio
  4. Attempt to control the camera using mouse movement/Shiftlock
  5. Observe that your mouse slides away instead of locking in place

Expected Behavior

I expect the mouse to work the exact same as it normally does when I’m physically at the PC.

Video of Behavior

This is a video of a computer connected to my workstation via Parsec. Note that I right click and try to move the camera. It doesn’t lock properly, making it go wild.

Extra Info

  • Parsec staff have stated in the past that Roblox handles mouse input “weirdly”, causing this behavior.
  • I don’t know if this happens with other remote desktop software.
  • The impact of this being fixed is high. Fixing this would let me do everything I do on my workstation while away from it. Currently, the most I can do is edit scripts.
  • The workstation is running Windows 10 (latest update).

We’ve tested this and it appears to work fine over traditional RDP, which many engineers use internally every day. We suspect this is some oddity with Parsec specifically.

Any chance they can give more specific details on this?

Hello, yes, I just got some more details. Thank you for your quick response and interest in the issue.

Transcript:


Here’s a video of what it looks like on the host machine. It’s hard to see, but on my host, the mouse stays locked in a position, and the Parsec-connected PC tries to move it farther and farther away. This video also showcases an oddity; enabling pointer trails seems to fix it?

Heya, I’m also using Parsec for remote work. Have you found any alternatives or solutions for this?

Enable pointer trails to fix it. It’s ugly, but it prevents the clipping problem for some reason.

Dang this accually works! Just enable Mouse Pointer Trails on Windows and then just set it to be short!

The only weird thing is that you cant exit the Parsec window anymore, so you have to disable it each time.

Im going to make a AutoHotkey Script to fix it, ill be back when I finish that.

Here is the AutoHotkey V2 Script if yall want it…

#Requires AutoHotkey v2.0

; Check cursor position every 150ms
SetTimer(CheckMousePosition, 150)

; Ensure trails are disabled when script exits
OnExit(ResetMouseTrails)

CheckMousePosition() {
    static trailsActive := false
    
    MouseGetPos ,, &windowID
    try {
        processName := WinGetProcessName(windowID)
    } catch {
        processName := ""
    }

    if (processName = "RobloxStudioBeta.exe") {
        if (!trailsActive) {
            SetMouseTrails(2) ; 2 is the shortest active trail setting in Windows
            trailsActive := true
        }
    } else {
        if (trailsActive) {
            SetMouseTrails(0) ; Turn off mouse trails
            trailsActive := false
        }
    }
}

SetMouseTrails(trailLength) {
    ; 0x005D = SPI_SETMOUSETRAILS
    DllCall("user32\SystemParametersInfo", "UInt", 0x005D, "UInt", trailLength, "Ptr", 0, "UInt", 0)
}

ResetMouseTrails(*) {
    SetMouseTrails(0)
}

Yes, I did use AI to generate it, but its such a minuscule helper script, I’m okay with it.</sub

PS: You can just always to Ctrl+Shift+M to focused as well…