android sotfkeys block getDesktopDimensions() function
Posted: Wed Jan 16, 2019 2:41 pm
hi
im trying to get dimension on android device by using
windowWidth, windowHeight = love.window.getDesktopDimensions()
it works fine on tablet without softkeys, but the problem is phone with softkeys
my game runs in fullscreen but getDesktopDimensions() function does not giving me real resolution dimensions
i tested it by drawing a line on windowHeight coordinates and it lands exactly above softkeys boundaries
first i thought maybe its cause i was using setMode(windowW, windowH,{fullscreen = true}) after getDesktopDimensions()
so i put fullscreen flag in conf.lua but still the result is the same
using 10.2 version
im trying to get dimension on android device by using
windowWidth, windowHeight = love.window.getDesktopDimensions()
it works fine on tablet without softkeys, but the problem is phone with softkeys
my game runs in fullscreen but getDesktopDimensions() function does not giving me real resolution dimensions
i tested it by drawing a line on windowHeight coordinates and it lands exactly above softkeys boundaries
first i thought maybe its cause i was using setMode(windowW, windowH,{fullscreen = true}) after getDesktopDimensions()
so i put fullscreen flag in conf.lua but still the result is the same
using 10.2 version