diff --git a/scene/key_config.lua b/scene/key_config.lua index edf244d..989c892 100644 --- a/scene/key_config.lua +++ b/scene/key_config.lua @@ -46,12 +46,12 @@ function KeyConfigScene:new() BUTTON.new{ text = CHAR.icon.fastForward.." SKIP", x = 40, y = 300, w = 100, h = 30, - codeWhenPressed = function() self:onInputPress{type = "key", scancode = "tab"} end + codeWhenReleased = function() self:onInputPress{type = "key", scancode = "tab"} end }, BUTTON.new{ text = CHAR.icon.cross_thick.." Cancel", x = 150, y = 300, w = 100, h = 30, - codeWhenPressed = function() self:onInputPress{type = "key", scancode = "escape"} end + codeWhenReleased = function() self:onInputPress{type = "key", scancode = "escape"} end }, } end @@ -63,17 +63,17 @@ function KeyConfigScene:update() BUTTON.new{ text = CHAR.icon.checkMark.." CONFIRM", x = 40, y = 300, w = 100, h = 30, - codeWhenPressed = function() self:onInputPress{type = "key", scancode = "return"} end + codeWhenReleased = function() self:onInputPress{type = "key", scancode = "return"} end }, BUTTON.new{ text = CHAR.icon.retry_spin.." Restart", x = 150, y = 300, w = 100, h = 30, - codeWhenPressed = function() self:onInputPress{type = "key", scancode = "delete"} end + codeWhenReleased = function() self:onInputPress{type = "key", scancode = "delete"} end }, BUTTON.new{ text = CHAR.icon.cross_thick.." Cancel", x = 260, y = 300, w = 100, h = 30, - codeWhenPressed = function() self:onInputPress{type = "key", scancode = "escape"} end + codeWhenReleased = function() self:onInputPress{type = "key", scancode = "escape"} end } } end diff --git a/scene/loading.lua b/scene/loading.lua index 8fd453b..237e94b 100644 --- a/scene/loading.lua +++ b/scene/loading.lua @@ -14,7 +14,7 @@ function LoadingScene.render() LOADED_BACKGROUND and "loaded" or "...", LOADED_MUSIC and "loaded" or "..." ), - 15, 440, 1e99, "left" + 15, 400, 1e99, "left" ) end diff --git a/scene/stick_config.lua b/scene/stick_config.lua index 0f53fb4..91b2065 100644 --- a/scene/stick_config.lua +++ b/scene/stick_config.lua @@ -46,12 +46,12 @@ function StickConfigScene:new() BUTTON.new{ text = CHAR.icon.fastForward.." SKIP", x = 40, y = 300, w = 100, h = 30, - codeWhenPressed = function() self:onInputPress{type = "key", scancode = "tab"} end + codeWhenReleased = function() self:onInputPress{type = "key", scancode = "tab"} end }, BUTTON.new{ text = CHAR.icon.cross_thick.." Cancel", x = 150, y = 300, w = 100, h = 30, - codeWhenPressed = function() self:onInputPress{type = "key", scancode = "escape"} end + codeWhenReleased = function() self:onInputPress{type = "key", scancode = "escape"} end }, } end @@ -63,17 +63,17 @@ function StickConfigScene:update() BUTTON.new{ text = CHAR.icon.checkMark.." CONFIRM", x = 40, y = 300, w = 100, h = 30, - codeWhenPressed = function() self:onInputPress{type = "key", scancode = "return"} end + codeWhenReleased = function() self:onInputPress{type = "key", scancode = "return"} end }, BUTTON.new{ text = CHAR.icon.retry_spin.." Restart", x = 150, y = 300, w = 100, h = 30, - codeWhenPressed = function() self:onInputPress{type = "key", scancode = "delete"} end + codeWhenReleased = function() self:onInputPress{type = "key", scancode = "delete"} end }, BUTTON.new{ text = CHAR.icon.cross_thick.." Cancel", x = 260, y = 300, w = 100, h = 30, - codeWhenPressed = function() self:onInputPress{type = "key", scancode = "escape"} end + codeWhenReleased = function() self:onInputPress{type = "key", scancode = "escape"} end } } end