You can do it by editing the mainmenu.lua file. Scroll to the bottom and add the following:
elseif Pad1 and Pad1.active() then
if Pad1.pressed(stingray.Pad1.button_id(Appkit.Util.plat(nil, "a", nil, "cross"))) then MainMenu.action = "start"
elseif Pad1.pressed(stingray.Pad1.button_id(Appkit.Util.plat(nil, "y", nil, "triangle"))) then MainMenu.action = "exit"
end
end
Here it is in context:
if MainMenu.action == nil then
local time = stingray.World.time(SimpleProject.world)
local p = stingray.Application.platform()
if time - start_time > 1 then
if Appkit.Util.is_pc() then
if stingray.Keyboard.pressed(stingray.Keyboard.button_id("1")) then MainMenu.action = "start"
elseif stingray.Keyboard.pressed(stingray.Keyboard.button_id("esc")) then MainMenu.action = "exit"
elseif Pad1 and Pad1.active() then
if Pad1.pressed(stingray.Pad1.button_id(Appkit.Util.plat(nil, "a", nil, "cross"))) then MainMenu.action = "start"
elseif Pad1.pressed(stingray.Pad1.button_id(Appkit.Util.plat(nil, "y", nil, "triangle"))) then MainMenu.action = "exit"
end
end
end
end
end