mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
TEST
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user