Not important uodates

This commit is contained in:
SweetSea-ButImNotSweet
2024-04-24 17:00:06 +07:00
parent 5fc92acbb7
commit 5f2687f855
5 changed files with 20 additions and 18 deletions

View File

@@ -2,6 +2,7 @@ local TouchConfigScene = SCENE:extend()
TouchConfigScene.title = "Touchscreen config\n(you can tap anywhere on touch screen to select this)"
local origin_touchPressed, origin_touchReleased, origin_touchMoved
local function onPressed(id, x, y)
if not VCTRL.press(x, y, id) then
-- TODO
@@ -21,7 +22,21 @@ function TouchConfigScene:new()
-- Temproraily hijacking game's touch-related functions
origin_touchPressed, origin_touchReleased, origin_touchMoved = love.touchpressed, love.touchreleased, love.touchmoved
SETTINGS.input.keys = table.merge(SETTINGS.input.keys, SETTINGS.input.touch)
SETTINGS.input.keys = table.merge(
SETTINGS.input.keys,
{
enter = 'menu_decide',
acback = 'menu_back',
f13 = 'up',
f14 = 'down',
f15 = 'left',
f16 = 'right',
f17 = 'rotate_left',
f18 = 'rotate_left2',
f19 = 'rotate_right',
f20 = 'rotate_right2',
}
)
end
function TouchConfigScene:update()
-- TODO