INNER CODE UNIT · C

inputManager

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

		inputManager = ( *env )->CallObjectMethod( env, sys_android_app->activity->clazz, sys_android_getSystemService, name );
		( *env )->DeleteLocalRef( env, name );
	}

	{
		jclass c;
		c = ( *env )->FindClass( env, "android/hardware/input/InputManager" );
		getInputDeviceIds = ( *env )->GetMethodID( env, c, "getInputDeviceIds", "()[I" );
		getInputDevice = ( *env )->GetMethodID( env, c, "getInputDevice", "(I)Landroid/view/InputDevice;" );
		( *env )->DeleteLocalRef( env, c );
		c = ( *env )->FindClass( env, "android/view/InputDevice" );
		getSources = ( *env )->GetMethodID( env, c, "getSources", "()I" );
		( *env )->DeleteLocalRef( env, c );
	}

	idsJA = ( *env )->CallObjectMethod( env, inputManager, getInputDeviceIds );
	num = ( *env )->GetArrayLength( env, idsJA );
	ids = ( *env )->GetIntArrayElements( env, idsJA, NULL );

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…