platform: android: slightly more verbosity

This commit is contained in:
Alibek Omarov 2020-03-29 17:44:23 +03:00
parent 87340ceca8
commit 89ca0dec5e
1 changed files with 9 additions and 0 deletions

View File

@ -337,7 +337,16 @@ DECLARE_JNI_INTERFACE( void, nativeKey, jint down, jint code )
else
{
if( code >= ( sizeof( s_android_scantokey ) / sizeof( s_android_scantokey[0] ) ) )
{
Con_DPrintf( "nativeKey: unknown Android key %d\n", code );
return;
}
if( !s_android_scantokey[code] )
{
Con_DPrintf( "nativeKey: unmapped Android key %d\n", code );
return;
}
event = Android_AllocEvent();
event->type = down?event_key_down:event_key_up;