From e6ae88aa87b81b2648faae05b9c6be91f69496e5 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 23 Sep 2022 04:33:31 +0200 Subject: [PATCH] input.c: do not fail on input_render Implementation is still incomplete, and should not crash the application. --- src/input/src/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/src/input.c b/src/input/src/input.c index bb94424..26116c8 100644 --- a/src/input/src/input.c +++ b/src/input/src/input.c @@ -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,