Fix input on linux

This commit is contained in:
2026-03-11 07:56:03 -05:00
parent 5bd43a4643
commit c77a11442c
10 changed files with 139 additions and 30 deletions

View File

@@ -171,12 +171,31 @@ function borderDraw(x, y, innerWidth, innerHeight)
)
end
x = 0
y = 0
function sceneDispose()
end
function sceneUpdate()
if inputIsDown(INPUT_ACTION_RIGHT) then
x = x + 1
end
if inputIsDown(INPUT_ACTION_LEFT) then
x = x - 1
end
if inputIsDown(INPUT_ACTION_DOWN) then
y = y + 1
end
if inputIsDown(INPUT_ACTION_UP) then
y = y - 1
end
end
function sceneRender()
-- Update camera
cameraPushMatrix(camera)
@@ -185,7 +204,7 @@ function sceneRender()
spriteBatchPush(
nil,
0, 0, 32, 32,
x, y, x + 32, y + 32,
colorBlue()
)