Fix onscreen control layout on layout change
Addresses https://github.com/reicast/reicast-emulator/issues/531
This commit is contained in:
parent
f3fde06548
commit
0b2494b568
|
@ -122,6 +122,7 @@ public class GL2JNIView extends GLSurfaceView
|
||||||
SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||||
| SYSTEM_UI_FLAG_FULLSCREEN
|
| SYSTEM_UI_FLAG_FULLSCREEN
|
||||||
| SYSTEM_UI_FLAG_HIDE_NAVIGATION);
|
| SYSTEM_UI_FLAG_HIDE_NAVIGATION);
|
||||||
|
requestLayout();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -741,7 +742,9 @@ public class GL2JNIView extends GLSurfaceView
|
||||||
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||||
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||||
| View.SYSTEM_UI_FLAG_FULLSCREEN
|
| View.SYSTEM_UI_FLAG_FULLSCREEN
|
||||||
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);}
|
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
|
||||||
|
requestLayout();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean takeScreenshot = false;
|
private boolean takeScreenshot = false;
|
||||||
|
|
|
@ -6,15 +6,18 @@ package com.reicast.emulator.periph;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
import android.app.Instrumentation;
|
||||||
|
import android.content.Context;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
import android.os.SystemClock;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import com.bda.controller.KeyEvent;
|
||||||
|
|
||||||
import com.bda.controller.Controller;
|
import com.bda.controller.Controller;
|
||||||
import com.bda.controller.ControllerListener;
|
import com.bda.controller.ControllerListener;
|
||||||
import com.bda.controller.KeyEvent;
|
|
||||||
import com.bda.controller.MotionEvent;
|
import com.bda.controller.MotionEvent;
|
||||||
import com.bda.controller.StateEvent;
|
import com.bda.controller.StateEvent;
|
||||||
import com.reicast.emulator.R;
|
import com.reicast.emulator.R;
|
||||||
|
@ -131,11 +134,14 @@ public final class MOGAInput
|
||||||
public void onKeyEvent(KeyEvent event)
|
public void onKeyEvent(KeyEvent event)
|
||||||
{
|
{
|
||||||
// Handled by the primary controller interface
|
// Handled by the primary controller interface
|
||||||
|
// act.dispatchKeyEvent(new android.view.KeyEvent(0, 0, event.getAction(),
|
||||||
|
// event.getKeyCode(), 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onMotionEvent(MotionEvent event)
|
public void onMotionEvent(MotionEvent event)
|
||||||
{
|
{
|
||||||
// Handled by the primary controller interface
|
// Handled by the primary controller interface
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void getCompatibilityMap(int playerNum, String id) {
|
private void getCompatibilityMap(int playerNum, String id) {
|
||||||
|
|
Loading…
Reference in New Issue