This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-25 00:29:03 +07:00
parent eb8de7ffa7
commit 86f835a1ce
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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