Cherry picked new Mouse Scenario

This commit is contained in:
Tig
2024-04-03 11:13:23 -06:00
parent 76095f7dbc
commit d9658efc65
2 changed files with 4 additions and 0 deletions

View File

@@ -2128,6 +2128,9 @@ internal class WindowsMainLoop : IMainLoopDriver
void IMainLoopDriver.TearDown ()
{
// Eat any outstanding events
//var r = _winConsole.ReadConsoleInput ();
_inputHandlerTokenSource?.Cancel ();
_inputHandlerTokenSource?.Dispose ();

View File

@@ -9,6 +9,7 @@ public class Mouse : Scenario
{
public override void Main ()
{
Application.Init ();
Window win = new ()
{
Title = $"{Application.QuitKey} to Quit - Scenario: {GetName ()}",