From 625d4f80afa330e5092a5ae71b69810b73aa0431 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Thu, 30 Sep 2021 23:07:03 -0400 Subject: [PATCH] Fixed an obscure bug with the menu DAS --- scene/mode_select.lua | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/scene/mode_select.lua b/scene/mode_select.lua index 3d2425f..d35594c 100755 --- a/scene/mode_select.lua +++ b/scene/mode_select.lua @@ -27,14 +27,7 @@ function ModeSelectScene:new() ruleset = current_ruleset, select = "mode", } - self.secret_inputs = { - rotate_left = false, - rotate_left2 = false, - rotate_right = false, - rotate_right2 = false, - rotate_180 = false, - hold = false, - } + self.secret_inputs = {} self.das = 0 DiscordRPC:update({ details = "In menus", @@ -157,12 +150,12 @@ function ModeSelectScene:onInputPress(e) end function ModeSelectScene:onInputRelease(e) - if e.input == "hold" or (e.input and string.sub(e.input, 1, 7) == "rotate_") then - self.secret_inputs[e.input] = false - elseif e.input == "up" or e.scancode == "up" then + if e.input == "up" or e.scancode == "up" then self.das_up = nil elseif e.input == "down" or e.scancode == "down" then self.das_down = nil + elseif e.input then + self.secret_inputs[e.input] = false end end