From 86f835a1ce973ac4d054e86eedf79f3a1609777c Mon Sep 17 00:00:00 2001 From: "Squishy (C6H12O6+NaCl+H2O)" <106439598+SweetSea-ButImNotSweet@users.noreply.github.com> Date: Sat, 25 May 2024 00:29:03 +0700 Subject: [PATCH] TEST --- scene/game.lua | 4 +++- scene/touch_config.lua | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scene/game.lua b/scene/game.lua index f67b196..82fd2cc 100644 --- a/scene/game.lua +++ b/scene/game.lua @@ -120,6 +120,8 @@ function GameScene:render() self.game:draw(self.paused) if self.game.input_playback then BUTTON.draw(buttonList) + else + VCTRL.draw() end if self.game.input_playback or self.game.game_over or self.game.completed then menuKey:draw() @@ -168,7 +170,7 @@ function GameScene:onInputPress(e) end function GameScene:onInputRelease(e) - if e.type == "touch" or (e.type == "mouse" and not VCTRL.release(e.id)) then + if e.type == "mouse" or (e.type == "touch" and not VCTRL.release(e.id)) then BUTTON.release(buttonList, e.x, e.y, e.id) menuKey:release(e.x, e.y, e.id) elseif e.input and string.sub(e.input, 1, 5) ~= "menu_" then diff --git a/scene/touch_config.lua b/scene/touch_config.lua index aa3b9ab..640d7f5 100644 --- a/scene/touch_config.lua +++ b/scene/touch_config.lua @@ -218,6 +218,7 @@ end ---@param e SCENE_onInput function TouchConfigScene:onInputMove(e) if e.type == "touch" or (e.type == "mouse" and love.mouse.isDown(1)) then + error() if VCTRL.drag(e.dx, e.dy, e.id or 1) then hasChanged = true end end