Mouse.Move fires, X and Y do not change

It makes sense, but it shouldn’t happen. You’d assume when using Mouse.Move each time it is fired the X and Y values would be different to the previous values. In first person this is not the case.

It’s simple, here’s a repro for it.

Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
Player.CameraMaxZoomDistance = 0.5

Mouse.Move:connect(function ()
print(Mouse.X, Mouse.Y)
end)

X and Y will always be the same. Technically this means the mouse should not be moving. Even though it’s extremely useful for certain games that doesn’t mean it should be happening.

[quote]event Move()
Member of Mouse
Summary:
Fired when the mouse X or Y member changes.[/quote]

http://wiki.roblox.com/index.php?title=Move

I’m noting a lack of X and Y values here.

There is no arguments supplied for X and Y. Just use Mouse.X and Mouse.Y.

(If I understand what your problem is…)

[quote] There is no arguments supplied for X and Y. Just use Mouse.X and Mouse.Y.

(If I understand what your problem is…) [/quote]

There is no problem. This is a bug, X and Y do not change despite the mouse “moving”, which indeed it is, however there should be a recorded change.

[quote]event Move()
Member of Mouse
Summary:
Fired when the mouse X or Y member changes.[/quote]

EDIT: Pretty sure the original post used x and y as if they were arguments passed by the event. Never mind then.

It makes total sense for the mouse.Move event to fire when you move your mouse in first person. The mouse coordinates are the same relative to the screen, but the 3D point to which the mouse is pointing has changed. If your only issue here is that the wiki’s description doesn’t fit, we can edit the wiki.

[quote] EDIT: Pretty sure the original post used x and y as if they were arguments passed by the event. Never mind then.

It makes total sense for the mouse.Move event to fire when you move your mouse in first person. The mouse coordinates are the same relative to the screen, but the 3D point to which the mouse is pointing has changed. If your only issue here is that the wiki’s description doesn’t fit, we can edit the wiki. [/quote]

Actually, I’d have changed the wiki myself. That’s the object browser. Visually, the mouses position does change and is then reset to the center as well.