INNER CODE UNIT · C

device

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

		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 );

	return i < num;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…