button.c: fix wrong function call

This commit is contained in:
Xavier Del Campo Romero 2022-07-07 02:36:19 +02:00
parent 4f714af054
commit a0363cef85
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ static bool pressed(const struct gui_button *const b,
switch (p->common.type)
{
case PERIPHERAL_TYPE_PAD:
check = pad_pressed(&p->pad.pad, PAD_KEY_A);
check = pad_justpressed(&p->pad.pad, PAD_KEY_A);
break;
case PERIPHERAL_TYPE_KEYBOARD_MOUSE: