1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-09 13:41:45 +00:00

small fixes

- On a switch lite, the home and cap buttons do weird things, so we should disable m
- File deletions should wait a bit
This commit is contained in:
suchmememanyskill 2021-01-11 21:22:24 +01:00
parent d27832effb
commit 86db030bda
3 changed files with 10 additions and 3 deletions

View file

@ -60,6 +60,7 @@ void DeleteFile(char *path, FSEntry_t entry){
SETCOLOR(COLOR_RED, COLOR_DARKGREY);
gfx_printf("Are you sure? ");
WaitFor(500);
if (!MakeYesNoHorzMenu(3, COLOR_DARKGREY))
return;

View file

@ -7,6 +7,7 @@
#include "../utils/utils.h"
#include "../tegraexplorer/tools.h"
#include <gfx/di.h>
#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();

View file

@ -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;