mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
pipe board_getSelPlayer() through jni
This commit is contained in:
parent
01b746860e
commit
8065e55b98
2 changed files with 13 additions and 1 deletions
|
@ -949,6 +949,18 @@ Java_org_eehouse_android_xw4_jni_XwJNI_board_1getActiveRect
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
JNIEXPORT jboolean JNICALL
|
||||||
Java_org_eehouse_android_xw4_jni_XwJNI_board_1handlePenDown
|
Java_org_eehouse_android_xw4_jni_XwJNI_board_1handlePenDown
|
||||||
(JNIEnv *env, jclass C, jint gamePtr, jint xx, jint yy, jbooleanArray barray )
|
(JNIEnv *env, jclass C, jint gamePtr, jint xx, jint yy, jbooleanArray barray )
|
||||||
|
|
|
@ -235,7 +235,7 @@ public class XwJNI {
|
||||||
boolean[] canZoom );
|
boolean[] canZoom );
|
||||||
public static native boolean board_getActiveRect( int gamePtr, Rect rect,
|
public static native boolean board_getActiveRect( int gamePtr, Rect rect,
|
||||||
int[] dims );
|
int[] dims );
|
||||||
|
public static native int board_getSelPlayer( int gamePtr );
|
||||||
public static native boolean board_handlePenDown( int gamePtr,
|
public static native boolean board_handlePenDown( int gamePtr,
|
||||||
int xx, int yy,
|
int xx, int yy,
|
||||||
boolean[] handled );
|
boolean[] handled );
|
||||||
|
|
Loading…
Reference in a new issue