subsoap / defos

Extra native OS functions for games written using the Defold game engine
Creative Commons Zero v1.0 Universal
112 stars 16 forks source link

First input after toggling fullscreen not available on MacOS? #117

Open subsoap opened 4 years ago

subsoap commented 4 years ago

https://forum.defold.com/t/first-mouse-click-after-fullscreen-toggle/66076

In this example the problem is not related to mouse click but to the F key (on the keyboard). In the on_input method you may see that once the fullscreen is toggled (with the F key itself!) then on_input is always called with action_id = hash(“key_f”). This forces you to press twice the F key for any subsequence toggle.

fullscreen_mouse.zip

dapetcu21 commented 3 years ago

Yeah, I experienced that as well in Interrogation. Not sure why it happens or how to fix it.