Any way to get androids virtual keyboards size?

A project to port LÖVE to Android handhelds
Locked
Muris
Party member
Posts: 131
Joined: Fri May 23, 2014 9:18 am

Any way to get androids virtual keyboards size?

Post by Muris »

Hello, today I bumped into a problem, where the virtual keyboard blocks the view of my text input field. I was wondering if there is a way to get the size/position of the virtual keyboard, so that I could temporarily "adjust" the textinput position? Currently I am readjusting it as following:

Code: Select all

if( love.keyboard.hasTextInput() and love.system.getOS() == "Android" ) then
   pos[2] = 0 
end		
This sets the label on top of my screen, but it looks kind of bad.
Locked

Who is online

Users browsing this forum: No registered users and 59 guests