[EDIT]
I realize the code provided is broken. I’m working to fix it at the moment. However, my question still stands about the attached picture
[/EDIT]
Hello there,
I’m getting close to publishing a corona app to Google play and I have a question about button mapping.
Basically I just want to know, did I do it right? Am I breaking any of Google’s rules or whatsoever?
Note that I can only test on my own device (A samsung galaxy S3 as shown in the picture) and I’m unsure if I my button-mapping might break the users ability to minimize the app on other devices.
Help greatly appreciated

local function onKeyEvent( event ) if event.phase == "up" and initialized == true then if event.keyName == "menu" or event.keyName == "homePage" or event.keyName == "space" then PAUSE.switchPauseState() elseif event.keyName == "volumeUp" or event.keyName == "volumeDown" then PAUSE.forceGameToPausedState() elseif event.keyName == "back" then PAUSE.forceGameToPausedState() native.requestExit() end end return event end Runtime:addEventListener("key", onKeyEvent)