I added a few transitional scenes between the main levels, nothing special happens on them, but if press the physical button "back" on the device (or emulate), the game will crash or close.
To prevent this on the main levels, I set everywhere with differen actions:
function onKeyEvent( event ) -- Some Code Here end
For example, on the menu.lua level I have the question "exit: yes/no".
But at transitional scenes, I do not need special actions. Is there a way to block or ignore commands from this button?
How do you prevent physical keys in short transitional scenes 10-120 seconds long?