Skip to content

Commit 6418f50

Browse files
authored
Added ISurface.PreUpdate event (#636)
* Added ISurface.PreUpdate event The ISurface.PreUpdate event would be used to run things like Input, which need to be updated before the user code's Update is called. In the current state of the library, depending on how the user hooks to the events, it is possible for the input to hook to the IView.Update after the user code, which would result in the user code not seeing the latest input (until the next update). * Changed PreUpdate event type to be just Action
1 parent 784a693 commit 6418f50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

documentation/proposals/Proposal - Windowing 3.0.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ namespace Silk.NET.Windowing
211211
/// Raised when the surface is initialized for the first time.
212212
/// </summary>
213213
event Action? Created;
214+
215+
/// <summary>
216+
/// Raised just before the Update event is raised.
217+
/// </summary>
218+
event Action? PreUpdate;
214219

215220
/// <summary>
216221
/// Raised when an update should be run.

0 commit comments

Comments
 (0)