diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-10-01 22:30:11 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-10-01 22:30:11 +0200 |
commit | ca4f9de8435aebd2d863a03c27b6aac63cdf8abf (patch) | |
tree | 1685ca1ae56448b4e236248b3bb4dc1748fe4a1c /source | |
parent | 7c7c2e9213de6bfc68b60609141bf0881d084d5d (diff) | |
download | saw-ca4f9de8435aebd2d863a03c27b6aac63cdf8abf.zip |
Web: Mouse leave event
Diffstat (limited to 'source')
-rw-r--r-- | source/saw/main.c | 6 |
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) { |