mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-09 05:41:46 +08:00
Remove unuseful control key hack
It breaks ctrl-space on android 7+ and crashes on 2.3-
This commit is contained in:
@@ -677,7 +677,7 @@ public class XashActivity extends Activity {
|
||||
|
||||
public static boolean performEngineKeyEvent( int action, int keyCode, KeyEvent event)
|
||||
{
|
||||
Log.v(TAG, "EngineKeyEvent( " + action +", " + keyCode +" "+ event.isCtrlPressed() +" )");
|
||||
//Log.v(TAG, "EngineKeyEvent( " + action +", " + keyCode +" "+ event.isCtrlPressed() +" )");
|
||||
|
||||
|
||||
if( action == KeyEvent.ACTION_DOWN )
|
||||
@@ -691,8 +691,8 @@ public class XashActivity extends Activity {
|
||||
}
|
||||
else if( action == KeyEvent.ACTION_UP )
|
||||
{
|
||||
if( keyCode == 62 && event.isCtrlPressed() )
|
||||
XashActivity.nativeKey( 1, keyCode );
|
||||
//if( keyCode == 62 && event.isCtrlPressed() )
|
||||
//XashActivity.nativeKey( 1, keyCode );
|
||||
XashActivity.nativeKey( 0, keyCode );
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user