Love Android getDimensions ignores screen buttons (home, back, alt-tab)

Discuss any ports of LÖVE to different platforms.
Post Reply
eri0o
Prole
Posts: 6
Joined: Fri Feb 09, 2018 9:51 pm

Love Android getDimensions ignores screen buttons (home, back, alt-tab)

Post by eri0o » Sat Feb 10, 2018 12:14 pm

Hello,

Using the Android port, I use the code below to get screen size of the device for scalling:

local onload_width, onload_height = love.graphics.getDimensions()

but the width returned (game in landscape) doesn't consider android screen buttons (back,home,app switching) when they exist.

sisyphu2
Prole
Posts: 1
Joined: Mon Sep 28, 2020 3:15 pm

Re: Love Android getDimensions ignores screen buttons (home, back, alt-tab)

Post by sisyphu2 » Mon Sep 28, 2020 3:19 pm

Hi
I am having the same issue, is anyone aware of a way to either get the correct dimensions (after accounting for the buttons) or otherwise a way to hide the buttons (I noticed that they remain visible whilst using löve games however in other apps these buttons disappear until prompted)

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests