mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 03:46:42 +01:00
Android: Fix touch pointer not working after activity recreation
The only place where initTouchPointer was called automatically was Host_RequestRenderWindowSize, which is called at least once after emulation start, but not after activity recreation.
This commit is contained in:
parent
eae68194b3
commit
c8a76e6928
@ -123,7 +123,17 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||||||
defaultOverlay();
|
defaultOverlay();
|
||||||
|
|
||||||
// Load the controls.
|
// Load the controls.
|
||||||
refreshControls();
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
// Set the on touch listener.
|
// Set the on touch listener.
|
||||||
setOnTouchListener(this);
|
setOnTouchListener(this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user