Skip to content

Commit

Permalink
feat: flip select and start buttons (#231)
Browse files Browse the repository at this point in the history
- match original gameboy
  • Loading branch information
thenick775 authored Dec 23, 2024
1 parent 8ae62dd commit 63ea9db
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions gbajs3/src/components/controls/virtual-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const VirtualControls = () => {
left: `calc(${horizontalStartPos}px - 85px)`
}
},
'start-button': {
'select-button': {
defaultMobile: {
top: '88dvh',
left: '25dvw'
Expand All @@ -157,7 +157,7 @@ export const VirtualControls = () => {
left: '220px'
}
},
'select-button': {
'start-button': {
defaultMobile: {
top: '88dvh',
left: '55dvw'
Expand Down Expand Up @@ -332,14 +332,6 @@ export const VirtualControls = () => {
keyName: 'b-button',
enabled: shouldShowVirtualButtonsAndOpad
},
{
keyId: 'START',
isRectangular: true,
children: <VirtualButtonTextSmall>Start</VirtualButtonTextSmall>,
initialPosition: initialPositionForKey('start-button'),
keyName: 'start-button',
enabled: shouldShowVirtualButtonsAndOpad
},
{
keyId: 'SELECT',
isRectangular: true,
Expand All @@ -348,6 +340,14 @@ export const VirtualControls = () => {
keyName: 'select-button',
enabled: shouldShowVirtualButtonsAndOpad
},
{
keyId: 'START',
isRectangular: true,
children: <VirtualButtonTextSmall>Start</VirtualButtonTextSmall>,
initialPosition: initialPositionForKey('start-button'),
keyName: 'start-button',
enabled: shouldShowVirtualButtonsAndOpad
},
{
keyId: 'L',
isRectangular: true,
Expand Down

0 comments on commit 63ea9db

Please sign in to comment.