The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Some advice about iOS/Android keyboard
ancientcc


Joined: 22 Feb 2011
Posts: 24
I use SDL 2.0.3. Holp SDL add some function about iOS/Android keyboard.

1. Provide event that notify keyboard height changed.
It can include three scenario: 1)Open keyboard; 2)Change of Input Method result to keyboard height change; 3)Close keyboard.

2. Provide API that get current keyboard height.

So on application view, it can handle keyboard-height event to know Keyboard open/close. And call get height API known current keyboard height to adjust window placement.