input.c: do not fail on input_render
Implementation is still incomplete, and should not crash the application.
This commit is contained in:
parent
eed4687120
commit
e6ae88aa87
|
@ -100,7 +100,7 @@ int input_render(const struct input *const in, const union peripheral *const p)
|
||||||
switch (p->common.type)
|
switch (p->common.type)
|
||||||
{
|
{
|
||||||
case PERIPHERAL_TYPE_KEYBOARD_MOUSE:
|
case PERIPHERAL_TYPE_KEYBOARD_MOUSE:
|
||||||
return 0;
|
break;
|
||||||
|
|
||||||
case PERIPHERAL_TYPE_TOUCH:
|
case PERIPHERAL_TYPE_TOUCH:
|
||||||
/* Fall through. */
|
/* Fall through. */
|
||||||
|
@ -108,7 +108,7 @@ int input_render(const struct input *const in, const union peripheral *const p)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool input_keyboard_justpressed(const struct input *const in,
|
bool input_keyboard_justpressed(const struct input *const in,
|
||||||
|
|
Loading…
Reference in New Issue