mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-10 14:12:04 +08:00
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
This commit is contained in:
@@ -133,7 +133,7 @@ static int KeycodeFromEvdev(int keycode, int value)
|
||||
}
|
||||
static void Evdev_CheckPermissions( void )
|
||||
{
|
||||
#ifdef __ANDROID__
|
||||
#if XASH_ANDROID
|
||||
system( "su 0 chmod 664 /dev/input/event*" );
|
||||
#endif
|
||||
}
|
||||
@@ -142,7 +142,7 @@ void Evdev_Setup( void )
|
||||
{
|
||||
if( evdev.initialized )
|
||||
return;
|
||||
#ifdef __ANDROID__
|
||||
#if XASH_ANDROID
|
||||
system( "su 0 supolicy --live \"allow appdomain input_device dir { ioctl read getattr search open }\" \"allow appdomain input_device chr_file { ioctl read write getattr lock append open }\"" );
|
||||
system( "su 0 setenforce permissive" );
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user