mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Add braces
This commit is contained in:
parent
c81ac090c9
commit
4edb0a3134
1 changed files with 4 additions and 0 deletions
|
@ -122,12 +122,16 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
||||||
for (InputOverlayDrawableButton button : overlayButtons)
|
for (InputOverlayDrawableButton button : overlayButtons)
|
||||||
{
|
{
|
||||||
if (button.getBounds().contains((int)event.getX(), (int)event.getY()))
|
if (button.getBounds().contains((int)event.getX(), (int)event.getY()))
|
||||||
|
{
|
||||||
NativeLibrary.onTouchEvent(0, button.getId(), buttonState);
|
NativeLibrary.onTouchEvent(0, button.getId(), buttonState);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
// Because the above code only changes the state for the button that is being touched, sliding off the
|
// Because the above code only changes the state for the button that is being touched, sliding off the
|
||||||
// button does not allow for it to be released. Release the button as soon as the touch coordinates leave
|
// button does not allow for it to be released. Release the button as soon as the touch coordinates leave
|
||||||
// the button bounds.
|
// the button bounds.
|
||||||
NativeLibrary.onTouchEvent(0, button.getId(), ButtonState.RELEASED);
|
NativeLibrary.onTouchEvent(0, button.getId(), ButtonState.RELEASED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue