I have been experimenting with TextField's in LibGDX and I have an issue where some input boxes will get covered by the virtual keyboard. I have tried several different solutions and I have settled on a slightly modified version of this answer for Android.
This is a superb solution, it does not actually have any involvement with the keyboard, but it provides the Android visible view, which allows us to calculate the height of the keyboard and use this as reference for moving objects or camera to the visible area. I initially did not wish to use this solution because I did not want to add much platform specific code, but have opted to keep it as it is very useful. For those who are interested in using this, the slight modification I made was to multiply the view dimensions by the ratio of the game virtual width to the actual screen width for consistency with lower resolution devices.
What I would like to know though is if there could be a similar approach to this on iOS? Unfortunately I will not be able to test such methods for a month or so, but iOS is a required target platform and it is crucial I can achieve the same result.
Is it possible to detect the iOS virtual keyboard presence in LibGDX? Can a similar method be created to retu the iOS visible area or keyboard height to LibGDX?
Many Thanks
