Bypass low battery notification when using an USB controller

This commit is contained in:
Karol Ciechlecki 2022-08-14 15:32:55 +02:00
parent 461f5f8f5c
commit e8725ae0d2

View file

@ -499,7 +499,7 @@ namespace BetterJoyForCemu {
}
}
if (battery <= 1) {
if (battery <= 1 && !isUSB) {
form.notifyIcon.Visible = true;
form.notifyIcon.BalloonTipText = String.Format("Controller {0} ({1}) - low battery notification!", PadId, isPro ? "Pro Controller" : (isSnes ? "SNES Controller" : (isLeft ? "Joycon Left" : "Joycon Right")));
form.notifyIcon.ShowBalloonTip(0);