platform: add Platfrom_Init, Platform_Shutdown, Platform_MouseMove move platform-specific code from host.c

This commit is contained in:
mittorn
2020-02-08 23:15:40 +07:00
parent adc718f4d5
commit 3e3aff040e
10 changed files with 221 additions and 181 deletions
+8 -3
View File
@@ -586,16 +586,21 @@ JNIEXPORT jint JNICALL JNI_OnLoad( JavaVM *vm, void *reserved )
/*
========================
Android_Init
Platform_Init
Initialize android-related cvars
========================
*/
void Android_Init( void )
void Platform_Init( void )
{
android_sleep = Cvar_Get( "android_sleep", "1", FCVAR_ARCHIVE, "Enable sleep in background" );
}
void Platform_Shutdown( void )
{
}
/*
========================
Android_EnableTextInput
@@ -714,7 +719,7 @@ void Android_SaveID( const char *id )
Android_MouseMove
========================
*/
void Android_MouseMove( float *x, float *y )
void Platform_MouseMove( float *x, float *y )
{
*x = jnimouse.x;
*y = jnimouse.y;