pipe board_getSelPlayer() through jni

This commit is contained in:
Eric House 2015-08-16 09:38:55 -07:00
parent 01b746860e
commit 8065e55b98
2 changed files with 13 additions and 1 deletions

View file

@ -949,6 +949,18 @@ Java_org_eehouse_android_xw4_jni_XwJNI_board_1getActiveRect
}
#endif
JNIEXPORT jint JNICALL
Java_org_eehouse_android_xw4_jni_XwJNI_board_1getSelPlayer
( JNIEnv* env, jclass C, jint gamePtr )
{
jint result;
XWJNI_START();
result = board_getSelPlayer( state->game.board );
XWJNI_END();
return result;
}
JNIEXPORT jboolean JNICALL
Java_org_eehouse_android_xw4_jni_XwJNI_board_1handlePenDown
(JNIEnv *env, jclass C, jint gamePtr, jint xx, jint yy, jbooleanArray barray )

View file

@ -235,7 +235,7 @@ public class XwJNI {
boolean[] canZoom );
public static native boolean board_getActiveRect( int gamePtr, Rect rect,
int[] dims );
public static native int board_getSelPlayer( int gamePtr );
public static native boolean board_handlePenDown( int gamePtr,
int xx, int yy,
boolean[] handled );