Page 1 of 1

Any way to get androids virtual keyboards size?

Posted: Tue Dec 16, 2014 6:13 pm
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.