Skip to content

Commit 5a5e226

Browse files
committed
Add the C button to the right joycon as well even though we won't be able to use it for a while.
1 parent c6d6bf1 commit 5a5e226

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

SerialPrograms/Source/NintendoSwitch/Controllers/NintendoSwitch_Joycon.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ constexpr Button VALID_RIGHT_JOYCON_BUTTONS =
4444
BUTTON_ZR |
4545
BUTTON_PLUS |
4646
BUTTON_RCLICK |
47-
BUTTON_HOME;
47+
BUTTON_HOME |
48+
BUTTON_C;
4849

4950

5051

SerialPrograms/Source/NintendoSwitch/Controllers/NintendoSwitch_KeyboardMapping.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ std::vector<std::unique_ptr<EditableTableRow>> JoyconKeyboardMappingTable::make_
417417

418418
ret.emplace_back(make_mapping("SL", Qt::Key::Key_F1, JoyconDeltas{.buttons = BUTTON_RIGHT_SL}));
419419
ret.emplace_back(make_mapping("SR", Qt::Key::Key_F3, JoyconDeltas{.buttons = BUTTON_RIGHT_SR}));
420+
421+
ret.emplace_back(make_mapping("C (Switch 2)", Qt::Key::Key_B, JoyconDeltas{.buttons = BUTTON_C}));
420422
}
421423

422424
return ret;

0 commit comments

Comments
 (0)