INNER CODE UNIT · C

num

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

	num = ( *env )->GetArrayLength( env, idsJA );
	ids = ( *env )->GetIntArrayElements( env, idsJA, NULL );
	for( i = 0; i < num; i++ ) {
		jobject device = ( *env )->CallObjectMethod( env, inputManager, getInputDevice, ids[i] );
		int sources;
		if( !device ) {
			continue;
		}
		sources = ( *env )->CallIntMethod( env, device, getSources );
		( *env )->DeleteLocalRef( env, device );
		if( ( sources & AINPUT_SOURCE_TOUCHSCREEN ) == AINPUT_SOURCE_TOUCHSCREEN ) {
			break;
		}
	}
	( *env )->ReleaseIntArrayElements( env, idsJA, ids, JNI_ABORT );
	( *env )->DeleteLocalRef( env, idsJA );

	( *env )->DeleteLocalRef( env, inputManager );

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…