From ca4f9de8435aebd2d863a03c27b6aac63cdf8abf Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sun, 1 Oct 2023 22:30:11 +0200 Subject: Web: Mouse leave event --- source/saw/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/saw/main.c b/source/saw/main.c index 56c1f87..a2ccbb5 100644 --- a/source/saw/main.c +++ b/source/saw/main.c @@ -1910,6 +1910,12 @@ static void saw_event(sapp_event const *event) { } break; + case SAPP_EVENTTYPE_MOUSE_LEAVE: + saw_lbutton_down = 0; + saw_rbutton_down = 0; + saw_mbutton_down = 0; + break; + case SAPP_EVENTTYPE_KEY_DOWN: if (!event->key_repeat) { switch (event->key_code) { -- cgit v1.2.3