mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-21 11:51:48 +02:00
Merge pull request #9082 from JosJuice/android-touch-pointer-recreate
Android: Fix touch pointer not working after activity recreation
This commit is contained in:
commit
f0422512e6
1 changed files with 11 additions and 1 deletions
|
@ -123,7 +123,17 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
||||||
defaultOverlay();
|
defaultOverlay();
|
||||||
|
|
||||||
// Load the controls.
|
// Load the controls.
|
||||||
|
if (NativeLibrary.IsRunning())
|
||||||
|
{
|
||||||
|
// We would've needed a refreshControls call here in addition to the initTouchPointer call
|
||||||
|
// if it wasn't for initTouchPointer calling refreshControls.
|
||||||
|
initTouchPointer();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// We can't call initTouchPointer yet because it needs the aspect ratio of the running game.
|
||||||
refreshControls();
|
refreshControls();
|
||||||
|
}
|
||||||
|
|
||||||
// Set the on touch listener.
|
// Set the on touch listener.
|
||||||
setOnTouchListener(this);
|
setOnTouchListener(this);
|
||||||
|
|
Loading…
Reference in a new issue