feat: switching slides

This commit is contained in:
Gerard Gascón 2024-06-07 00:08:43 +02:00
parent 0ebb7f6459
commit 5f7bb79e56
4 changed files with 45 additions and 2 deletions

View file

@ -29,7 +29,6 @@ public class JoyConRead : GamepadReader {
await LogDeviceInfo(joycon);
joycon.ReportReceived += OnJoyConOnReportReceived;
Console.WriteLine($"JoyCon ready for presenting.");
joycon.StoppedOnError += (_, ex) => {
Console.WriteLine();
@ -39,7 +38,9 @@ public class JoyConRead : GamepadReader {
return Task.CompletedTask;
};
Console.ReadKey();
Console.WriteLine("JoyCon ready for presenting.");
Console.WriteLine("Press Enter to exit program.");
while (Console.ReadKey().Key != ConsoleKey.Enter) { }
joycon.Stop();
Console.WriteLine();