feat: input error handling improved
This commit is contained in:
parent
fbdfef79a2
commit
af6c8d33ea
|
@ -7,6 +7,7 @@ static List _devices;
|
|||
static inline
|
||||
void _internal_open_keyboard() {
|
||||
InputDevice* keyboard = malloc(sizeof(InputDevice));
|
||||
ASSERT_RETURN(keyboard != NULL, , "Failed to allocate space for keyboard input device");
|
||||
*keyboard = (InputDevice){
|
||||
.listeners = NULL,
|
||||
.type = InputDevice_KBM,
|
||||
|
|
Loading…
Reference in a new issue