feat: don't instant quit if no controller
This commit is contained in:
parent
2097dfeb27
commit
9e0abe972f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue