added key repeat to keymon and api

This commit is contained in:
Shaun Inman 2023-01-14 21:26:42 -05:00
parent 0f8665ed26
commit 809a7e360d
4 changed files with 138 additions and 103 deletions

View file

@ -1422,7 +1422,7 @@ int main (int argc, char *argv[]) {
dirty = 1;
}
if (PAD_justPressed(BTN_VOL_UP) || PAD_justPressed(BTN_VOL_DN) || PAD_justPressed(BTN_MENU)) {
if (PAD_justRepeated(BTN_VOL_UP) || PAD_justRepeated(BTN_VOL_DN) || PAD_justPressed(BTN_MENU)) {
setting_start = now;
if (PAD_isPressed(BTN_MENU)) {
show_setting = 1;