First mouse click after fullscreen toggle

Hi!

It seems to me that each time I toggle the fullscreen mode (using defos), the first mouse click is lost by Defold? Is this intentional? or a known issue?

Thanks!

Ciao!

Can you reproduce this is a small example? Is it happening on a specific OS? I don’t see this in my projects on Win10.

I see it on my mac and also on a macbook air. I will try and find the time to create a small repro… but I am extremely busy in completing the game for release, sorry.

@Pkeod I have been able to create a small example project with a problem in the input system related to fullscreen toggle.

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.

In my game I toggle the fullscreen with the mouse click and I would guess that the same action_id is forever looped calling on_input…

I have tested this example on a Mac.

fullscreen_mouse.zip (5.6 MB)

Thanks for any help!

Thank you for the example. So you know the build and .internals folders are not necessary when sharing projects and only make them larger than necessary when sharing.

I tested the project on Windows 10 and it does not happen the way you describe (works as expected, a single f input works toggle every time) so it must be an oddity with MacOS fullscreen toggling somehow. Either @dapetcu21 might have some insight or it would be something the Defold team would have to look into. I do not have a guess on how easily this would be solved.

I have created an issue on DefOS as reference https://github.com/subsoap/defos/issues/117

3 Likes