Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/src/org/renpy/android/SDLSurfaceView.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ public interface OnInterceptTouchListener {

// what is the textinput type while calling the keyboard
public int inputType = EditorInfo.TYPE_CLASS_TEXT;

//
public int kHeight = 0;

// Is Python ready to receive input events?
static boolean mInputActivated = false;
Expand Down Expand Up @@ -1179,11 +1182,13 @@ public void onGlobalLayout() {
Rect rctx = new Rect();
activityRootView.getWindowVisibleDisplayFrame(rctx);
int heightDiff = default_display.getHeight() - (rctx.bottom - rctx.top);
if (heightDiff > 100){
if (heightDiff != kHeight){
Log.i("Python:", String.format("Layout Triggered, Keyboard_height: %s", heightDiff));
//send control sequence start /x04 == kayboard layout changed
nativeKey(45, 1, 4);
nativeKey(45, 0, 4);
}
kHeight = heightDiff;
}
});
return new BaseInputConnection(this, false){
Expand Down