INNER CODE UNIT · C

key

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

			key = keycode + ( K_UPARROW - AKEYCODE_DPAD_UP );
		} else {
			key = s_android_scantokey[keycode];
		}
		if( !key ) {
			return 0;
		}

		time = AKeyEvent_getEventTime( event ) / ( ( int64_t )1000000 );

		switch( AKeyEvent_getAction( event ) ) {
			case AKEY_EVENT_ACTION_DOWN:
			case AKEY_EVENT_ACTION_MULTIPLE:
				if( ( key == K_ESCAPE ) && IN_Android_HideSoftKeyboard() ) { // Instead of broken AInputQueue_preDispatchEvent.
					return 1;
				}

				Key_Event( key, true, time );

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…