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 | a735c86cc194650643edc9116ad97176aa5c5bab (patch) | |
| tree | 03825ee1ad4437c4d7c646493721c7338a5a055e /src | |
| parent | 2672a69976b3b3628c7f41010a9a41066adeddf4 (diff) | |
input.c: do not fail on input_render
Implementation is still incomplete, and should not crash the
application.
Diffstat (limited to 'src')
| -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, |
