Sopsy / joycon-turnoff

A simple program to shut down Nintendo Switch controllers to preserve their battery.
MIT License
29 stars 1 forks source link

Have the ability to keep the app running as it goes through a list of connected Joycons before terminating itself #2

Open tommai78101 opened 2 months ago

tommai78101 commented 2 months ago

Currently, the app turns off one paired ("connected" henceforth) Joycons at a time. If there are 4 Joycons connected to the PC via Bluetooth, running the app and following the instructions only allow you to turn off 1 of them. And you have to repeatedly launch the app for however many Joycons connected to the PC.

I would like to request if the app can either:

Thank you.

Sopsy commented 2 months ago

This is definitely doable, and should be rather easy, but I wanted to keep the code as short as possible to minimize the amount of possible bugs. I believe just a loop back to controller detection from the final return 0 would be enough.

It's a good idea honestly, but as this is probably not used daily and as it's been 3 years since I last worked on this and it still works, I think I prefer not to break it just for a convenience feature.

I'll keep this in mind anyway if I ever need to change anything with this (for example by adding the missing Genesis controller support).