engine: finish sdl1.2 port

This commit is contained in:
Alibek Omarov
2019-10-26 04:36:43 +03:00
parent 7f1dd248c2
commit 9d826016b0
16 changed files with 409 additions and 263 deletions

View File

@@ -815,8 +815,7 @@ void Key_EnableTextInput( qboolean enable, qboolean force )
else if( !enable )
Platform_EnableTextInput( false );
if( !force )
host.textmode = enable;
host.textmode = enable;
}
/*
@@ -907,6 +906,23 @@ void CL_CharEvent( int key )
}
}
/*
============
Key_ToUpper
A helper function if platform input doesn't support text mode properly
============
*/
int Key_ToUpper( int keynum )
{
keynum = Q_toupper( keynum );
if( keynum == '-' )
keynum = '_';
if( keynum == '=' )
keynum = '+';
return keynum;
}
/* On-screen keyboard:
*