mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Tweak button delay in hid.c
This commit is contained in:
parent
7d3a5270f1
commit
f4fc17f145
@ -138,7 +138,7 @@ u32 InputWait(u32 timeout_sec) {
|
||||
while (HID_ReadState() & SHELL_CLOSED);
|
||||
}
|
||||
|
||||
delay = delay ? 72 : 128;
|
||||
delay = delay ? 144 : 256;
|
||||
|
||||
do {
|
||||
u32 newpad = HID_ReadState();
|
||||
@ -172,13 +172,11 @@ u32 InputWait(u32 timeout_sec) {
|
||||
continue;
|
||||
}
|
||||
|
||||
u32 t_pressed = 0;
|
||||
while((t_pressed++ < 0x13000) && (newpad == HID_ReadState()));
|
||||
if (t_pressed >= 0x13000) {
|
||||
// screenshot handling
|
||||
if ((newpad & BUTTON_ANY) == (BUTTON_R1 | BUTTON_L1))
|
||||
CreateScreenshot(); // screenshot handling
|
||||
CreateScreenshot();
|
||||
|
||||
return newpad;
|
||||
}
|
||||
} while (!timeout_sec || (timeout_sec && (timer_sec(timer) < timeout_sec)));
|
||||
|
||||
return TIMEOUT_HID;
|
||||
|
Loading…
x
Reference in New Issue
Block a user