Skip to content

Commit

Permalink
Rectify missing button label type check
Browse files Browse the repository at this point in the history
  • Loading branch information
deeebug committed Aug 1, 2023
1 parent 47c4df1 commit 2076726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/src/Components/KeyboardMapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const KeyboardMapper = ({ buttonLabels, handleKeyChange, validated, getKeyMappin
<tbody>
{Object.keys(BUTTONS[buttonLabelType])?.filter(p => p !== 'label' && p !== 'value').map((button, i) => {
let label = BUTTONS[buttonLabelType][button];
if (button === "S1" && swapTpShareLabels) {
if (button === "S1" && swapTpShareLabels && buttonLabelType === "ps4") {
label = BUTTONS[buttonLabelType]["A2"];
}
if (button === "A2" && swapTpShareLabels) {
if (button === "A2" && swapTpShareLabels && buttonLabelType === "ps4") {
label = BUTTONS[buttonLabelType]["S1"];
}
const keyMapping = getKeyMappingForButton(button);
Expand Down

0 comments on commit 2076726

Please sign in to comment.