Fixed input function on ScreenOverscanConfig

Now you can exit OverscanConfig safely.
This commit is contained in:
krakpot
2015-06-23 04:01:00 +09:00
parent ac3ecfd034
commit 139463b7a5
2 changed files with 14 additions and 0 deletions
@@ -77,6 +77,19 @@ end
local function input(event)
if event.type == "InputEventType_Release" then return false end
local button= ToEnumShortString(event.DeviceInput.button)
local gamebutton = event.GameButton
local input_functions = {
Start= function()
SCREENMAN:GetTopScreen():StartTransitioningScreen("SM_GoToNextScreen")
SOUND:PlayOnce(THEME:GetPathS("Common", "Start"), true)
end,
Back= function()
SCREENMAN:GetTopScreen():Cancel()
end
};
if input_functions[gamebutton] then
input_functions[gamebutton]()
end
for valname, button_set in pairs(valtex_buttons) do
if button == button_set[1] then
change_center_val(valname, 1)
+1
View File
@@ -1672,6 +1672,7 @@ RepeatDelay=.25
Class="ScreenWithMenuElements"
Fallback="ScreenWithMenuElements"
NextScreen="ScreenOptionsDisplaySub"
PrevScreen="ScreenOptionsDisplaySub"
RepeatRate=10
RepeatDelay=.25