diff options
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) { |