diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:33:31 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:38:33 +0200 |
| commit | e6ae88aa87b81b2648faae05b9c6be91f69496e5 (patch) | |
| tree | 9338f548a7874e3288feb5b23a259f37eb63e644 | |
| parent | eed468712000c5fe456404a06d24c6e0f69a71f4 (diff) | |
input.c: do not fail on input_render
Implementation is still incomplete, and should not crash the
application.
| -rw-r--r-- | src/input/src/input.c | 4 |
1 files 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, |
