INNER CODE UNIT · C

cursor

Qfusion/qfusion · source/android/android_input.c:567

		int cursor = ( *env )->CallIntMethod( env, sys_android_app->activity->clazz, getComposingCursor );
		const char *oldCursorStr = cursorStr;
		while( ( cursor > 0 ) && *cursorStr ) {
			cursor--;
			cursorStr += Q_Utf8SyncPos( cursorStr, 1, UTF8SYNC_RIGHT );
		}
		*cursorPos = cursorStr - oldCursorStr;
	}

	( *env )->ReleaseStringUTFChars( env, textJS, textUTF );
	( *env )->DeleteLocalRef( env, textJS );

	return len;
}

unsigned int IN_IME_GetCandidates( char * const *cands, size_t candSize, unsigned int maxCands, int *selected, int *firstKey ) {
	if( selected ) {
		*selected = -1;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…