mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 02:49:02 -06:00
863c614a4c
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.
25 lines
382 B
Lua
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
|
|
|