convertInputRecord

fnbool convertInputRecord(ref const INPUT_RECORD record, ref ConsoleInputEvent event) @trusted nothrow @nogc

Convert a Windows INPUT_RECORD to a ConsoleInputEvent.

This is a utility function for manual event conversion when needed.

Parameters

recordWindows INPUT_RECORD structure.
eventOutput event structure to fill.

Returns

true if the record was converted successfully, false if it

was an unknown or unsupported event type.