print unhandled event name
This commit is contained in:
parent
6c2f3fc283
commit
a774de6e76
4
input.c3
4
input.c3
@ -81,7 +81,9 @@ fn bool? Ctx.handle_events(&ctx)
|
|||||||
ctx.input_mouse_button(btn);
|
ctx.input_mouse_button(btn);
|
||||||
//case POLL_SENTINEL: break;
|
//case POLL_SENTINEL: break;
|
||||||
default:
|
default:
|
||||||
io::eprintfn("unhandled event: %s", e.type);
|
static char[128] e_name;
|
||||||
|
sdl3::getEventDescription(&e, &e_name, e_name.len);
|
||||||
|
io::eprintfn("unhandled event: %s", ((String)&e_name).tsplit(" ")[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user