Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
quiting applications [solved] — Gideros Forum

quiting applications [solved]

flashjaysanflashjaysan Member
edited July 2018 in General questions
First, I know that it's a bad practice to call an exit function to quit an app on mobile but I'm more interested in desktop and web games.
I saw in the documentation that the Application:exit() call is only available on Android. Is it still the case or is it an old description of that method?
I want to be able to quit my game with some kind of input (for example from a menu option or by pressing Escape key or a gamepad back button). How would I do that?
local function onKeyDown(self, event)
  local ESCAPE_KEY = 27
  if event.realCode == ESCAPE_KEY then
Would it do the job?


Sign In or Register to comment.