Page 1 of 1

Tests of LÖVE on Linux Mobile Phone (PinePhone Pro)

Posted: Wed Nov 15, 2023 1:00 pm
by Popolon
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

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

Re: Tests of LÖVE on Linux Mobile Phone (PinePhone Pro)

Posted: Thu Nov 16, 2023 3:59 am
by SugarRayLua
That's really impressive! I'm aware that the much of the Pine Pro's capabilities are still being perfected, so for you to get Love2D working on it along with implement working touch on the device is great! 😊

-advocate for mobile Love2D implementations