menghao
9 years agoVisitor
Scene Graph App quit event
Is there any way I can just block the quit event for a second? Or any walkaround? I need to detect the quit event at least. I want to log the usage to a remote server, let's say google analytics. For now, as I know, the OnKeyEvent() in the node can not detect the home button pressed. And it seems in the main.brs, the while loop that listens on the messagePort is not working either. It seems that no roSGScreenEvent has happened, the logQuit() was never called.
while(true)
msg = wait(0, m.port)
msgType = type(msg)
if msgType = "roSGScreenEvent"
if msg.isScreenClosed() then
logQuit()
return
end if
end if
end while