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