UserInputService:GetMouseDelta() broken with today's Roblox Player Update

Reproduction Steps

Bind UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter to render step

Expected Behavior

UserInputService:GetMouseDelta() should return the proper mouse delta vector

Actual Behavior

Mouse movement is ignored. 0,0 is returned every time. This issue is only happening in Roblox Player. The same code in Roblox Studio is returning the proper delta.

Issue Area: Engine
Issue Type: Other
Impact: Very High
Frequency: Constantly
Date First Experienced: 2023-03-01 12:03:00 (-08:00)
Date Last Experienced: 2023-03-01 00:03:00 (-08:00)

12 Likes

Confirmed that I’m experiencing this issue in games other than our own, seems to be platform wide.

2 Likes

Yes, this is a big issue for me as well. This is ruining my games. We need a quick fix.

2 Likes

Same. Replacing it with .InputChanged seemed to work.

3 Likes

We are investigating this. Thanks for the bug report.

8 Likes

I can’t seem to reproduce this in the player here: GetMouseDelta - Roblox

This is my code:

local UserInputService = game:GetService("UserInputService")

local message = Instance.new("Message")
message.Parent = workspace

game:GetService("RunService").RenderStepped:Connect(function()
	UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
	message.Text = tostring(UserInputService:GetMouseDelta())
end)
1 Like

Okay, looks like this is a Windows specific bug. Can anyone here confirm if this is happening/not happening to them on Windows/Mac?

3 Likes

im on windows and it does happen

3 Likes

GetMouseDelta works as intended on my mac, just tried it out. Also functions as expected on mobile iOS. Seems to be only Windows.

(It however still works with a gamepad on Windows)

2 Likes

This is happening to me on my Windows 11 PC but not on my Macbook Pro Ventura 13.2.1.

I am on windows and my mouse is very inconsistent when moving around in Roblox Player.

1 Like

I can confirm it does move sometimes, like if you move the mouse around a lot, you get some amount of the movement happening in very irregular stutters.

1 Like

Yes exactly. When looking around it speeds up and slows down every 1 second it seems

1 Like

We believe we’ve identified the issue. Please let us know if this still happens after an hour or so to give everything time to update.

12 Likes

Roblox reverted the update, all should be working now

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.