Hi,
I was running Defold demo game, which entered fullscreen. Now I am not able to exit window. Is there any keyboard shortcut ? Pressing Esc doesn’t help.
Can you check if the checkbox "Escape Quits Game"
is enabled? This can be found at the Preferences
tab under File
in de editor. This is very handy when you want to test your game.
You could also send a message to exit the game. Create a new trigger for key-esc
in your .input_binding file and call the action escape
for example.
function on_input(self, action_id, action)
if action_id == hash("escape") then
msg.post("@system:", "exit", {code = 0})
end
end
5 Likes
Or even better is to call:
sys.exit(code)
3 Likes
@amel Yes, That’s exactly missing. I checked in Defold > File > Preferences > General tab.
By default, it was unchecked.
Thank you for the support!
2 Likes