summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-10-01 22:30:11 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-10-01 22:30:11 +0200
commitca4f9de8435aebd2d863a03c27b6aac63cdf8abf (patch)
tree1685ca1ae56448b4e236248b3bb4dc1748fe4a1c
parent7c7c2e9213de6bfc68b60609141bf0881d084d5d (diff)
downloadsaw-ca4f9de8435aebd2d863a03c27b6aac63cdf8abf.zip
Web: Mouse leave event
-rw-r--r--source/saw/main.c6
1 files changed, 6 insertions, 0 deletions
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) {