Table of Contents

Delegate WindowsMessageHook

Namespace
Sdl3Sharp.Utilities
Assembly
Sdl3Sharp.dll

Represents a method to handle messages directly from the Windows event loop

public delegate bool WindowsMessageHook(nint msg)

Parameters

msg nint

A pointer to a Win32 event structure to process

Returns

bool

true to let the event continue on; otherwise, false to drop it

Remarks

This callback may modify the message, and should return true if the message should continue to be processed, or false to prevent further processing.

As this is processing a message directly from the Windows event loop, this callback should do the minimum required work and return quickly.

This may only be called (by SDL) from the thread handling the Windows event loop.