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