engine: platform: implement generic GetNativeObject for POSIX systems without SDL2
This commit is contained in:
parent
1855fab80b
commit
b84aba68fa
2 changed files with 11 additions and 8 deletions
|
@ -272,11 +272,6 @@ void Platform_RunEvents( void )
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void *Platform_GetNativeObject( const char *name )
|
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GAME_EXPORT Platform_GetMousePos( int *x, int *y )
|
void GAME_EXPORT Platform_GetMousePos( int *x, int *y )
|
||||||
{
|
{
|
||||||
*x = *y = 0;
|
*x = *y = 0;
|
||||||
|
|
|
@ -147,12 +147,20 @@ void Posix_Daemonize( void )
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !XASH_SDL && !XASH_ANDROID
|
#if !XASH_SDL && !XASH_ANDROID
|
||||||
|
|
||||||
void Platform_Init( void )
|
void Platform_Init( void )
|
||||||
{
|
{
|
||||||
Posix_Daemonize();
|
Posix_Daemonize();
|
||||||
}
|
}
|
||||||
void Platform_Shutdown( void ) {}
|
|
||||||
|
void Platform_Shutdown( void )
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void *Platform_GetNativeObject( const char *name )
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if XASH_TIMER == TIMER_POSIX
|
#if XASH_TIMER == TIMER_POSIX
|
||||||
|
|
Loading…
Add table
Reference in a new issue