mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-22 20:06:43 +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:
parent
d27832effb
commit
86db030bda
3 changed files with 10 additions and 3 deletions
|
@ -59,7 +59,8 @@ void DeleteFile(char *path, FSEntry_t entry){
|
||||||
gfx_con_setpos(384 + 16, 200 + 16 + 10 * 16);
|
gfx_con_setpos(384 + 16, 200 + 16 + 10 * 16);
|
||||||
SETCOLOR(COLOR_RED, COLOR_DARKGREY);
|
SETCOLOR(COLOR_RED, COLOR_DARKGREY);
|
||||||
gfx_printf("Are you sure? ");
|
gfx_printf("Are you sure? ");
|
||||||
|
|
||||||
|
WaitFor(500);
|
||||||
if (!MakeYesNoHorzMenu(3, COLOR_DARKGREY))
|
if (!MakeYesNoHorzMenu(3, COLOR_DARKGREY))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#include "../utils/utils.h"
|
#include "../utils/utils.h"
|
||||||
#include "../tegraexplorer/tools.h"
|
#include "../tegraexplorer/tools.h"
|
||||||
#include <gfx/di.h>
|
#include <gfx/di.h>
|
||||||
|
#include "../config.h"
|
||||||
|
|
||||||
static Input_t inputs = {0};
|
static Input_t inputs = {0};
|
||||||
u16 LbaseX = 0, LbaseY = 0, RbaseX = 0, RbaseY = 0;
|
u16 LbaseX = 0, LbaseY = 0, RbaseX = 0, RbaseY = 0;
|
||||||
|
@ -15,11 +16,15 @@ void hidInit(){
|
||||||
jc_init_hw();
|
jc_init_hw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern hekate_config h_cfg;
|
||||||
|
|
||||||
Input_t *hidRead(){
|
Input_t *hidRead(){
|
||||||
jc_gamepad_rpt_t *controller = joycon_poll();
|
jc_gamepad_rpt_t *controller = joycon_poll();
|
||||||
|
|
||||||
//if (controller->cap)
|
if (h_cfg.t210b01){ // Disable home and capture buttons on mariko to avoid weird behaviour
|
||||||
// utils_takeScreenshot();
|
controller->home = 0;
|
||||||
|
controller->cap = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (controller->home)
|
if (controller->home)
|
||||||
RebootToPayloadOrRcm();
|
RebootToPayloadOrRcm();
|
||||||
|
|
|
@ -142,6 +142,7 @@ char *ShowKeyboard(const char *toEdit, u8 alwaysRet){
|
||||||
}
|
}
|
||||||
int val = (input->up || input->down) ? 11 : 1;
|
int val = (input->up || input->down) ? 11 : 1;
|
||||||
|
|
||||||
|
// Btn buttons do not work lol
|
||||||
if (input->buttons & (JoyLLeft | JoyLUp | BtnVolM)){
|
if (input->buttons & (JoyLLeft | JoyLUp | BtnVolM)){
|
||||||
if (pos > -1 + val)
|
if (pos > -1 + val)
|
||||||
pos -= val;
|
pos -= val;
|
||||||
|
|
Loading…
Reference in a new issue