**以前のリビジョンの文書です**
004 androidのBackキーでアプリを終了する
input → game.input
binding にback-key のactionを追加する。
- oninputにコードを追記する。
function on_input(self, action_id, action)
-- backキーでアプリを終了させる。
if action_id == hash("back") and action.pressed then
print("You back")
msg.post("@system:", "exit", {code = 0})
end
end