Update controller.lua for CocosIDE’s need