bdk: joycon: improve charger config

Utilize charger config set command which allows for supplement mode.
Additionally, remove ping config when SIO and parse buttons/sticks on subcmd reports.
This commit is contained in:
CTCaer authored and NaGa committed 2026-03-27 09:58:48 +01:00
1 parent 0edd5295d6
commit 19279fa57d
2 files changed
+191 -69

No files matched your search

+3 -1
View File
@@ -1,7 +1,7 @@
/*
* Ambient light sensor driver for Nintendo Switch's Rohm BH1730
*
* Copyright (c) 2018 CTCaer
* Copyright (c) 2018-2025 CTCaer
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
@@ -86,6 +86,8 @@ typedef struct _jc_gamepad_rpt_t
bool sio_mode;
u8 batt_info_l; // Also Sio Connected status.
u8 batt_info_r; // Also Sio IRQ.
u8 batt_chrg_l;
u8 batt_chrg_r;
jc_bt_conn_t bt_conn_l;
jc_bt_conn_t bt_conn_r;
} jc_gamepad_rpt_t;