From 9e0abe972f4748d67c604944e6ec512be4fd4659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerard=20Gasc=C3=B3n?= <52170489+GerardGascon@users.noreply.github.com> Date: Fri, 7 Jun 2024 00:59:55 +0200 Subject: [PATCH] feat: don't instant quit if no controller --- JoyConRead.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/JoyConRead.cs b/JoyConRead.cs index 4eb901b..49c1153 100644 --- a/JoyConRead.cs +++ b/JoyConRead.cs @@ -20,6 +20,8 @@ public class JoyConRead : GamepadReader { HidDevice? device = GetHidDevice(); if (device == null) { Console.WriteLine("No controller. Please connect Joy-Con or Pro controller via Bluetooth."); + Console.WriteLine("Press any key to exit program."); + Console.ReadKey(); return; } JoyCon joycon = new(device);