feat: switching slides
This commit is contained in:
parent
0ebb7f6459
commit
5f7bb79e56
4 changed files with 45 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue