Add braces

This commit is contained in:
Sean 2014-04-22 18:40:53 -04:00
parent c81ac090c9
commit 4edb0a3134

View File

@ -122,13 +122,17 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
for (InputOverlayDrawableButton button : overlayButtons)
{
if (button.getBounds().contains((int)event.getX(), (int)event.getY()))
{
NativeLibrary.onTouchEvent(0, button.getId(), buttonState);
}
else
{
// 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
// the button bounds.
NativeLibrary.onTouchEvent(0, button.getId(), ButtonState.RELEASED);
}
}
for (InputOverlayDrawableJoystick joystick : overlayJoysticks)