InputSystem icon indicating copy to clipboard operation
InputSystem copied to clipboard

Mouse Pointer Offset

Open jackpr-unity opened this issue 8 years ago • 5 comments

On my 3440x1440 screen, putting the mouse in the upper right corner of the screen reports a position of (-7.0, -7.0) in the Input Debugger Pointer. This also occurs on my 2560x1440 screen. Will report what happens after reboot...

jackpr-unity avatar Feb 09 '18 22:02 jackpr-unity

Still occurs after reboot.

jackpr-unity avatar Feb 09 '18 22:02 jackpr-unity

@Rene-Damm does this belong here, or attached to the PR?

jackpr-unity avatar Feb 09 '18 22:02 jackpr-unity

After further inspection, it appears that Pointer position as reported by the Input Debugger is relative to Pointer window. Is this intended?

jackpr-unity avatar Feb 09 '18 22:02 jackpr-unity

I'm convinved this is fine and working as intended. Closing issue.

jackpr-unity avatar Feb 13 '18 23:02 jackpr-unity

Yup, Mouse.current.position is meant to correspond to Input.mousePosition in player code. In OnGUI() code it's meant to be relative to the current EditorWindow, though.

Rene-Damm avatar Feb 14 '18 23:02 Rene-Damm