mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-29 05:20:23 +01:00
Remove unuseful control key hack
It breaks ctrl-space on android 7+ and crashes on 2.3-
This commit is contained in:
parent
0e3b544534
commit
426b088e16
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user