mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Release button after touch leaves boundaries
Now, your finger can still move around, but as soon as it leaves the button boundaries the button is released.
This commit is contained in:
parent
72f3d69a78
commit
f489e30cd8
@ -123,6 +123,8 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
||||
{
|
||||
if (button.getBounds().contains((int)event.getX(), (int)event.getY()))
|
||||
NativeLibrary.onTouchEvent(0, button.getId(), buttonState);
|
||||
else // Release button after touch leaves boundaries
|
||||
NativeLibrary.onTouchEvent(0, button.getId(), ButtonState.RELEASED);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user