Fix R3 button X position and move L3+R3 to the lower part of the screen

This commit is contained in:
Cameron Gutman 2020-01-18 23:14:51 -08:00
parent 150bd313cf
commit f87cbac77c

View File

@ -173,6 +173,8 @@ public class VirtualControllerConfigurationLoader {
private static final int ANALOG_R_BASE_Y = 42; private static final int ANALOG_R_BASE_Y = 42;
private static final int ANALOG_SIZE = 28; private static final int ANALOG_SIZE = 28;
private static final int L3_R3_BASE_Y = 60;
private static final int START_X = 83; private static final int START_X = 83;
private static final int BACK_X = 34; private static final int BACK_X = 34;
private static final int START_BACK_Y = 64; private static final int START_BACK_Y = 64;
@ -308,7 +310,7 @@ public class VirtualControllerConfigurationLoader {
VirtualControllerElement.EID_LSB, VirtualControllerElement.EID_LSB,
ControllerPacket.LS_CLK_FLAG, 0, 1, "L3", -1, controller, context), ControllerPacket.LS_CLK_FLAG, 0, 1, "L3", -1, controller, context),
screenScale(TRIGGER_L_BASE_X, height), screenScale(TRIGGER_L_BASE_X, height),
screenScale(TRIGGER_BASE_Y, height), screenScale(L3_R3_BASE_Y, height),
screenScale(TRIGGER_WIDTH, height), screenScale(TRIGGER_WIDTH, height),
screenScale(TRIGGER_HEIGHT, height) screenScale(TRIGGER_HEIGHT, height)
); );
@ -316,8 +318,8 @@ public class VirtualControllerConfigurationLoader {
controller.addElement(createDigitalButton( controller.addElement(createDigitalButton(
VirtualControllerElement.EID_RSB, VirtualControllerElement.EID_RSB,
ControllerPacket.RS_CLK_FLAG, 0, 1, "R3", -1, controller, context), ControllerPacket.RS_CLK_FLAG, 0, 1, "R3", -1, controller, context),
screenScale(TRIGGER_R_BASE_X + TRIGGER_DISTANCE, height), screenScale(TRIGGER_R_BASE_X + TRIGGER_DISTANCE, height) + rightDisplacement,
screenScale(TRIGGER_BASE_Y, height), screenScale(L3_R3_BASE_Y, height),
screenScale(TRIGGER_WIDTH, height), screenScale(TRIGGER_WIDTH, height),
screenScale(TRIGGER_HEIGHT, height) screenScale(TRIGGER_HEIGHT, height)
); );