diff --git a/core/src/main/java/com/agifans/agile/GameScreen.java b/core/src/main/java/com/agifans/agile/GameScreen.java index 388be7d..b451a95 100644 --- a/core/src/main/java/com/agifans/agile/GameScreen.java +++ b/core/src/main/java/com/agifans/agile/GameScreen.java @@ -305,10 +305,10 @@ private void draw(float delta) { float joyX = 0; float joyY = 0; if (viewportManager.isPortrait()) { - // Top of keyboard is: 765 + 130 = 895. + // Top of keyboard is: 765 + 135 = 900. int joyWidth = 200; int agiScreenBase = (int)(viewportManager.getHeight() - (viewportManager.getWidth() / 1.32)); - int midBetweenKeybAndPic = ((agiScreenBase + 895) / 2); + int midBetweenKeybAndPic = ((agiScreenBase + 900) / 2); portraitTouchpad.setSize(joyWidth, joyWidth); portraitTouchpad.setY(midBetweenKeybAndPic - (joyWidth / 2)); portraitTouchpad.setX(1080 - joyWidth - 10); diff --git a/core/src/main/java/com/agifans/agile/ui/GameScreenInputProcessor.java b/core/src/main/java/com/agifans/agile/ui/GameScreenInputProcessor.java index fded3da..61d24dd 100644 --- a/core/src/main/java/com/agifans/agile/ui/GameScreenInputProcessor.java +++ b/core/src/main/java/com/agifans/agile/ui/GameScreenInputProcessor.java @@ -318,7 +318,7 @@ public boolean touchUp(int screenX, int screenY, int pointer, int button) { if (viewportManager.isPortrait()) { // Portrait. - if (touchXY.y < 130) { + if (touchXY.y < 135) { if (touchXY.x < 126) { joystickClicked = true; } else if (touchXY.x > (viewportManager.getWidth() - 126)) { diff --git a/core/src/main/java/com/agifans/agile/ui/KeyboardType.java b/core/src/main/java/com/agifans/agile/ui/KeyboardType.java index efb8f24..c9639ef 100644 --- a/core/src/main/java/com/agifans/agile/ui/KeyboardType.java +++ b/core/src/main/java/com/agifans/agile/ui/KeyboardType.java @@ -70,7 +70,7 @@ public enum KeyboardType { }, "png/portrait_keyboard_lowercase.png", 0.6f, - 130, + 135, 0, 1, -1, @@ -86,7 +86,7 @@ public enum KeyboardType { }, "png/portrait_keyboard_uppercase.png", 0.6f, - 130, + 135, 0, 1, -1, @@ -102,7 +102,7 @@ public enum KeyboardType { }, "png/portrait_keyboard_punc_numbers.png", 0.6f, - 130, + 135, 0, 1, -1,