Mouse locked to center on Linux

Hey guys,

Every night I cross compile my project to Linux to ensure that it works but I’m having an issue with getting free-form mouse-movement when running on Linux.

This is the bit of code I’m assuming is causing problems:

		FInputModeGameAndUI mode;
		mode.SetHideCursorDuringCapture(true);
		mode.SetLockMouseToViewportBehavior(EMouseLockMode::LockAlways);
		GetWorld()->GetFirstPlayerController()->SetInputMode(mode);

Here is a short youtube clip of the experience behaviour: link

On windows, I retain the ability to move my mouse cursor around whilst on Linux it locks to the center of the Viewport and stays there.

Is this a bug or am I just doing things incorrectly?

Thanks,

Hey -

Just to clarify, this only occurs on the packaged Linux version of your game, correct? Can you provide a comparison of what the behavior looks like on Windows (intended behavior)? If you suspect this code is the issue, what is the behavior if you remove this code? Where does the code exist in your project so that I can try to setup a reproduction case that matches your setup.

Hey -

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.

Cheers