From 63ea9db451e688a5ebbbb6602ba761832ad488c2 Mon Sep 17 00:00:00 2001 From: Nicholas VanCise <40526638+thenick775@users.noreply.github.com> Date: Sun, 22 Dec 2024 21:40:28 -0800 Subject: [PATCH] feat: flip select and start buttons (#231) - match original gameboy --- .../components/controls/virtual-controls.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gbajs3/src/components/controls/virtual-controls.tsx b/gbajs3/src/components/controls/virtual-controls.tsx index 498a2cdf..6f30fb97 100644 --- a/gbajs3/src/components/controls/virtual-controls.tsx +++ b/gbajs3/src/components/controls/virtual-controls.tsx @@ -139,7 +139,7 @@ export const VirtualControls = () => { left: `calc(${horizontalStartPos}px - 85px)` } }, - 'start-button': { + 'select-button': { defaultMobile: { top: '88dvh', left: '25dvw' @@ -157,7 +157,7 @@ export const VirtualControls = () => { left: '220px' } }, - 'select-button': { + 'start-button': { defaultMobile: { top: '88dvh', left: '55dvw' @@ -332,14 +332,6 @@ export const VirtualControls = () => { keyName: 'b-button', enabled: shouldShowVirtualButtonsAndOpad }, - { - keyId: 'START', - isRectangular: true, - children: Start, - initialPosition: initialPositionForKey('start-button'), - keyName: 'start-button', - enabled: shouldShowVirtualButtonsAndOpad - }, { keyId: 'SELECT', isRectangular: true, @@ -348,6 +340,14 @@ export const VirtualControls = () => { keyName: 'select-button', enabled: shouldShowVirtualButtonsAndOpad }, + { + keyId: 'START', + isRectangular: true, + children: Start, + initialPosition: initialPositionForKey('start-button'), + keyName: 'start-button', + enabled: shouldShowVirtualButtonsAndOpad + }, { keyId: 'L', isRectangular: true,