diff --git a/source/fs/menus/filemenu.c b/source/fs/menus/filemenu.c index a2a010f..644d1ff 100644 --- a/source/fs/menus/filemenu.c +++ b/source/fs/menus/filemenu.c @@ -59,7 +59,8 @@ void DeleteFile(char *path, FSEntry_t entry){ gfx_con_setpos(384 + 16, 200 + 16 + 10 * 16); SETCOLOR(COLOR_RED, COLOR_DARKGREY); gfx_printf("Are you sure? "); - + + WaitFor(500); if (!MakeYesNoHorzMenu(3, COLOR_DARKGREY)) return; diff --git a/source/hid/hid.c b/source/hid/hid.c index 536ac6d..bc94904 100644 --- a/source/hid/hid.c +++ b/source/hid/hid.c @@ -7,6 +7,7 @@ #include "../utils/utils.h" #include "../tegraexplorer/tools.h" #include +#include "../config.h" static Input_t inputs = {0}; u16 LbaseX = 0, LbaseY = 0, RbaseX = 0, RbaseY = 0; @@ -15,11 +16,15 @@ void hidInit(){ jc_init_hw(); } +extern hekate_config h_cfg; + Input_t *hidRead(){ jc_gamepad_rpt_t *controller = joycon_poll(); - //if (controller->cap) - // utils_takeScreenshot(); + if (h_cfg.t210b01){ // Disable home and capture buttons on mariko to avoid weird behaviour + controller->home = 0; + controller->cap = 0; + } if (controller->home) RebootToPayloadOrRcm(); diff --git a/source/utils/utils.c b/source/utils/utils.c index b83e8ef..41b41bd 100644 --- a/source/utils/utils.c +++ b/source/utils/utils.c @@ -142,6 +142,7 @@ char *ShowKeyboard(const char *toEdit, u8 alwaysRet){ } int val = (input->up || input->down) ? 11 : 1; + // Btn buttons do not work lol if (input->buttons & (JoyLLeft | JoyLUp | BtnVolM)){ if (pos > -1 + val) pos -= val;