diff --git a/src/in/celest/xash3d/XashActivity.java b/src/in/celest/xash3d/XashActivity.java index 92d6eb37..1379bae4 100644 --- a/src/in/celest/xash3d/XashActivity.java +++ b/src/in/celest/xash3d/XashActivity.java @@ -691,13 +691,15 @@ public class XashActivity extends Activity { if( action == KeyEvent.ACTION_DOWN ) { nativeHat( id, hat, val, true ); + return true; } else if( action == KeyEvent.ACTION_UP ) { nativeHat( id, hat, val, false ); + return true; } - return true; + return false; } // Engine will bind these to AUX${val} virtual keys diff --git a/src/su/xash/fwgslib/FWGSLib.java b/src/su/xash/fwgslib/FWGSLib.java index c1a41ee8..caeb1617 100644 --- a/src/su/xash/fwgslib/FWGSLib.java +++ b/src/su/xash/fwgslib/FWGSLib.java @@ -115,6 +115,11 @@ public class FWGSLib { File f = ctx.getExternalFilesDir( null ); + if( f == null ) + { + f = new File( getDefaultXashPath() ); + } + f.mkdirs(); return f.getAbsolutePath();