TimKey return type

This commit is contained in:
2026-01-09 06:06:01 +05:00
parent 4150a609e2
commit 6e946200a2
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ void TimEditState_delete(TimEditState* e) {
}
/// @return key id or 0
static i32 edit_event(TimEditState* e, TimRect r) {
static TimKey edit_event(TimEditState* e, TimRect r) {
if (tim_is_mouse_click_over(r)) {
// take focus
tim->focus = e;
@@ -85,7 +85,7 @@ static i32 edit_event(TimEditState* e, TimRect r) {
return tim->event.key;
}
i32 tim_edit(TimEditState* e, i32 x, i32 y, i32 w, u64 color) {
TimKey tim_edit(TimEditState* e, i32 x, i32 y, i32 w, u64 color) {
TimRect r = tim_scope_rect_to_absolute(x, y, w, 3);
if (tim->event.type == TimEvent_Draw) {