Skip to content
4 changes: 2 additions & 2 deletions Packages/com.unity.inputsystem/InputSystem/Devices/Mouse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public struct MouseState : IInputStateTypeInfo
public static FourCC Format => new FourCC('M', 'O', 'U', 'S');

/// <summary>
/// Screen-space position of the mouse in pixels.
/// Screen-space position of the mouse in pixels. Updated independently from delta using WM. At high framerates, certain frames might not receive any new position data.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to remember this is a platform-agnostic API. I would suggest changing "Updated", which is given, to "May be updated independently from delta depending on the platform."

Then you may add to remarks: "On Windows, delta originates from RAWINPUT API." or leave that out.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"If a delta is needed that correlates with position, compute it based on the last reported position".

/// </summary>
/// <value>Position of mouse on screen.</value>
/// <seealso cref="Pointer.position"/>
Expand All @@ -32,7 +32,7 @@ public struct MouseState : IInputStateTypeInfo
public Vector2 position;

/// <summary>
/// Screen-space motion delta of the mouse in pixels.
/// Screen-space motion delta of the mouse in pixels. Updated independently from position using raw mouse input. At high framerates, certain frames might not receive any new delta data.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest changing this similarly.

/// </summary>
/// <value>Mouse movement.</value>
/// <seealso cref="Pointer.delta"/>
Expand Down