added mouse wheel support

This commit is contained in:
2026-01-12 21:54:15 +05:00
parent 75d894b1bd
commit 717c049265
8 changed files with 141 additions and 37 deletions

View File

@@ -4,10 +4,6 @@ bool tim_is_event_key(TimEventType type, TimKey key) {
return tim->event.type == type && tim->event.key == key;
}
bool tim_is_key_press(TimKey key) {
return tim_is_event_key(TimEvent_Key, key);
}
bool tim_is_mouse_over(TimRect r) {
i32 x = tim->event.x;
i32 y = tim->event.y;