diff --git a/xwords4/android/XWords4/jni/xwjni.c b/xwords4/android/XWords4/jni/xwjni.c index a370e73fd..4c85b0a33 100644 --- a/xwords4/android/XWords4/jni/xwjni.c +++ b/xwords4/android/XWords4/jni/xwjni.c @@ -1022,6 +1022,17 @@ Java_org_eehouse_android_xw4_jni_XwJNI_board_1focusChanged return result; } +JNIEXPORT jboolean JNICALL +Java_org_eehouse_android_xw4_jni_XwJNI_board_1canFlip +( JNIEnv* env, jclass C, jint gamePtr ) +{ + jboolean result; + XWJNI_START(); + result = board_canFlip( state->game.board ); + XWJNI_END(); + return result; +} + JNIEXPORT jboolean JNICALL Java_org_eehouse_android_xw4_jni_XwJNI_board_1handleKey ( JNIEnv* env, jclass C, jint gamePtr, jobject jkey, jboolean jup, diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XwJNI.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XwJNI.java index eca79734b..9267a58c3 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XwJNI.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XwJNI.java @@ -146,6 +146,7 @@ public class XwJNI { public static native String board_formatRemainingTiles( int gamePtr ); public static native int board_getFocusOwner( int gamePtr ); public static native boolean board_focusChanged( int gamePtr, int typ ); + public static native boolean board_canFlip( int gamePtr ); public enum XP_Key { XP_KEY_NONE,