Merge pull request #693 from kr4kp0t/master
Fixed input function on ScreenOverscanConfig
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1672,6 +1672,7 @@ RepeatDelay=.25
|
||||
Class="ScreenWithMenuElements"
|
||||
Fallback="ScreenWithMenuElements"
|
||||
NextScreen="ScreenOptionsDisplaySub"
|
||||
PrevScreen="ScreenOptionsDisplaySub"
|
||||
RepeatRate=10
|
||||
RepeatDelay=.25
|
||||
|
||||
|
||||
Reference in New Issue
Block a user