feat: input error handling improved

This commit is contained in:
Sara 2023-11-29 14:14:01 +01:00
parent fbdfef79a2
commit af6c8d33ea

View file

@ -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,