Tests of LÖVE on Linux Mobile Phone (PinePhone Pro)
Posted: Wed Nov 15, 2023 1:00 pm
I made a first test of LÖVE multitouch capabilities on a Pine64 PinePhone Pro, Linux Phone (here on Manjaro Phosh dev, but it should work about the same on other flavors).
All I've coded work fine (including simple shaders usage),
The simple code to see this (only little change from the wiki example).
Made a Pleroma (Fediverse publication tool, linked to Mastodon) post about this with video and .love included.
https://pleroma.popolon.org/notice/AbpaQ6r7Ru6Qw4Zkiu
All I've coded work fine (including simple shaders usage),
The simple code to see this (only little change from the wiki example).
Made a Pleroma (Fediverse publication tool, linked to Mastodon) post about this with video and .love included.
https://pleroma.popolon.org/notice/AbpaQ6r7Ru6Qw4Zkiu
Code: Select all
ox, oy = 0,0
function love.load()
love.window.setFullscreen(true)
end
function love.draw()
local touches = love.touch.getTouches()
for i, id in ipairs(touches) do
local x, y = love.touch.getPosition(id)
love.graphics.circle("fill", x, y, 20)
love.graphics.line(x,y, ox,oy)
ox,oy=x,y
end
end