From 482f799d356a8fbb8f585c4de7cc0992b8dc6fd3 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Tue, 13 Oct 2026 15:41:39 +0300 Subject: Migrate tests to the unified event API Port backend, input, tablet and app tests from yasl_input_event and YASL_INPUT_* to struct yasl_event and YASL_EVENT_*. The input allocation test links input.c on its own, so it stubs yasl_loop_now_ns() for the new event timestamps. Co-Authored-By: Claude Opus 5.5 --- tests/cocoa/test_cursor.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/cocoa/test_cursor.m') diff --git a/tests/cocoa/test_cursor.m b/tests/cocoa/test_cursor.m index aaca815..4054d59 100644 --- a/tests/cocoa/test_cursor.m +++ b/tests/cocoa/test_cursor.m @@ -37,10 +37,10 @@ int main(void) [view mouseMoved:motion]; [view cursorUpdate:cursor]; assert([NSCursor currentCursor] == hidden); - struct yasl_input_event event; + struct yasl_event event; bool moved = false; - while (yasl_surface_input_poll(surface, &event)) - if (event.kind == YASL_INPUT_MOUSE && event.mouse.kind == YASL_PTR_MOTION) + while (yasl_surface_poll_event(surface, &event)) + if (event.type == YASL_EVENT_POINTER_MOTION) moved = true; assert(moved); -- cgit v1.2.3