It looks like you're new here. If you want to get involved, click one of these buttons!
We should be able to read the data from our iPad's buttons. For instance: if the home button is pressed, pause the game.
@niorg2606 that's not something which is possible in the iOS SDK. The home button will always suspend the running app, there is nothing an app can do to prevent that.
@yojimbo2000 it's supposed to pause that automatically. But I agree that a hook would be very useful regardless.
A hook for appWillEnterBackground would be useful, but what about the volume buttons? Is it possible to hook into those?
@niorg2606 The volume buttons will work but apple doesn't like people using the buttons for non standard things
"2.5.9 Apps that alter the functions of standard switches, such as the Volume Up/Down and Ring/Silent switches, or other native user interface elements or behaviors will be rejected."
Mabe a set volume and read volume will be allowed because Codea isn't doing anything but probably not a "button pressed" event