Fix virtual button method

This commit is contained in:
SweetSea-ButImNotSweet
2024-05-27 20:18:24 +07:00
parent 5cc3cae343
commit 7cf450868a
4 changed files with 9 additions and 4 deletions

View File

@@ -57,6 +57,8 @@ function TrainingScene:onInputPress(e)
SCENE = TitleScene()
elseif (e.input == "menu_back") then
SCENE = TitleScene()
elseif e.input == "restart" or e.input == "menu_decide" then
SCENE = TrainingScene()
elseif e.input and string.sub(e.input, 1, 5) ~= "menu_" then
self.inputs[e.input] = true
end