mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-09 13:41:45 +00:00
fix keyboard with volume buttons
This commit is contained in:
parent
634895ba48
commit
a1c9a62063
1 changed files with 11 additions and 4 deletions
|
@ -157,12 +157,19 @@ 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->volm) {
|
||||||
if (input->buttons & (JoyLLeft | JoyLUp | BtnVolM)){
|
if (pos > 0)
|
||||||
|
pos -= 1;
|
||||||
|
}
|
||||||
|
else if (input->volp) {
|
||||||
|
if (pos < 43)
|
||||||
|
pos += 1;
|
||||||
|
}
|
||||||
|
else if (input->buttons & (JoyLLeft | JoyLUp)){
|
||||||
if (pos > -1 + val)
|
if (pos > -1 + val)
|
||||||
pos -= val;
|
pos -= val;
|
||||||
}
|
}
|
||||||
if (input->buttons & (JoyLRight | JoyLDown | BtnVolP)){
|
else if (input->buttons & (JoyLRight | JoyLDown)){
|
||||||
if (pos < 44 - val)
|
if (pos < 44 - val)
|
||||||
pos += val;
|
pos += val;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue