input.c: do not fail on input_render

Implementation is still incomplete, and should not crash the
application.
This commit is contained in:
Xavier Del Campo Romero 2022-09-23 04:33:31 +02:00
parent eed4687120
commit e6ae88aa87
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ int input_render(const struct input *const in, const union peripheral *const p)
switch (p->common.type)
{
case PERIPHERAL_TYPE_KEYBOARD_MOUSE:
return 0;
break;
case PERIPHERAL_TYPE_TOUCH:
/* Fall through. */
@ -108,7 +108,7 @@ int input_render(const struct input *const in, const union peripheral *const p)
break;
}
return -1;
return 0;
}
bool input_keyboard_justpressed(const struct input *const in,