It looks like you're new here. If you want to get involved, click one of these buttons!
local function onExit() print("-------------------------") print("EXITING!!!!") end stage:addEventListener(Event.APPLICATION_EXIT, onExit) stage:addEventListener(Event.KEY_DOWN, function(event) if event.keyCode == KeyCode.BACK then print("BACK KEY PRESSED") application:exit() end end) print("HANDLER INSTALLED") |
Comments
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: oleg
Fragmenter - animated loop machine and IKONOMIKON - the memory game
That event is supposed to exist?
And it is very strange that your Gideros seems to exit immediately after uploading? Very strange mine gives the following...
main.lua is uploading.
Uploading finished.
EXIT HANDLER INSTALLED
@keszegh thanks, I will look at that. I have the game saving the state data at the start of each level so that will be good enough I think
@antix
I think the print ( )does not have time to show before the output,
and shows before the start of the next start
Likes: SinisterSoft
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!