mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 01:49:02 -06:00
Fixed an obscure bug with the menu DAS
This commit is contained in:
parent
173b3ddbc9
commit
625d4f80af
@ -27,14 +27,7 @@ function ModeSelectScene:new()
|
|||||||
ruleset = current_ruleset,
|
ruleset = current_ruleset,
|
||||||
select = "mode",
|
select = "mode",
|
||||||
}
|
}
|
||||||
self.secret_inputs = {
|
self.secret_inputs = {}
|
||||||
rotate_left = false,
|
|
||||||
rotate_left2 = false,
|
|
||||||
rotate_right = false,
|
|
||||||
rotate_right2 = false,
|
|
||||||
rotate_180 = false,
|
|
||||||
hold = false,
|
|
||||||
}
|
|
||||||
self.das = 0
|
self.das = 0
|
||||||
DiscordRPC:update({
|
DiscordRPC:update({
|
||||||
details = "In menus",
|
details = "In menus",
|
||||||
@ -157,12 +150,12 @@ function ModeSelectScene:onInputPress(e)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ModeSelectScene:onInputRelease(e)
|
function ModeSelectScene:onInputRelease(e)
|
||||||
if e.input == "hold" or (e.input and string.sub(e.input, 1, 7) == "rotate_") then
|
if e.input == "up" or e.scancode == "up" then
|
||||||
self.secret_inputs[e.input] = false
|
|
||||||
elseif e.input == "up" or e.scancode == "up" then
|
|
||||||
self.das_up = nil
|
self.das_up = nil
|
||||||
elseif e.input == "down" or e.scancode == "down" then
|
elseif e.input == "down" or e.scancode == "down" then
|
||||||
self.das_down = nil
|
self.das_down = nil
|
||||||
|
elseif e.input then
|
||||||
|
self.secret_inputs[e.input] = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user