INNER CODE UNIT · C

time

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

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

				if( Key_IsDown( K_LCTRL ) || Key_IsDown( K_RCTRL ) ) {
					if( key == 'v' ) {
						Key_CharEvent( KC_CTRLV, KC_CTRLV );
					} else if( key == 'c' ) {
						Key_CharEvent( KC_CTRLC, KC_CTRLC );
					} else {
						Key_CharEvent( key, IN_Android_KeyEvent2UCS( event ) );

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…