Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Robust.Client/Graphics/Clyde/ClydeHeadless.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ClydeHeadless()

public event Action<TextEnteredEventArgs>? TextEntered { add { } remove { } }
public event Action<TextEditingEventArgs>? TextEditing { add { } remove { } }
public event Action<MouseMoveEventArgs>? MouseMove { add { } remove { } }
public event Action<MouseMoveEventArgs> MouseMove { add { } remove { } }
Comment on lines 61 to +62

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why was it made non-nullable? There's no guarantee when it's invoked that it has any subscribers.

public event Action<MouseEnterLeaveEventArgs>? MouseEnterLeave { add { } remove { } }
public event Action<KeyEventArgs>? KeyUp { add { } remove { } }
public event Action<KeyEventArgs>? KeyDown { add { } remove { } }
Expand Down
4 changes: 4 additions & 0 deletions Robust.Client/Graphics/IClyde.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.IO;
using System.Numerics;
using System.Threading.Tasks;
using Robust.Client.Input;
using Robust.Shared.GameObjects;
using Robust.Shared.Graphics;
using Robust.Shared.Maths;
Expand Down Expand Up @@ -56,6 +57,9 @@ public interface IClyde

event Action<WindowFocusedEventArgs> OnWindowFocused;

/// <summary>Raised on mouse motion.</summary>
event Action<MouseMoveEventArgs> MouseMove;

event Action<WindowContentScaleEventArgs> OnWindowScaleChanged;

OwnedTexture LoadTextureFromPNGStream(Stream stream, string? name = null,
Expand Down
Loading