cambridge/scene/config.lua
nightmareci 863c614a4c Implemented joystick input.
I had to redo how input is done entirely, so more than one source of input can be used for game inputs.

I added new inputs, menu_decide and menu_back. Return and escape still have their reserved status, sending menu_decide and menu_back, respectively. Other keys are reserved too, like arrows, to ensure users can always reconfigure input.
2020-11-08 12:55:06 -08:00

25 lines
382 B
Lua

local ConfigScene = Scene:extend()
require 'load.save'
function ConfigScene:new()
end
function ConfigScene:update()
end
function ConfigScene:render()
end
function ConfigScene:changeOption(rel)
local len = table.getn(main_menu_screens)
self.main_menu_state = (self.main_menu_state + len + rel - 1) % len + 1
end
function ConfigScene:onInputPress(e)
end
return ConfigScene