Skip to content

Commit 99e0d18

Browse files
committed
Add missing key mappings.
1 parent 170c176 commit 99e0d18

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

SerialPrograms/Source/NintendoSwitch/Controllers/Joycon/NintendoSwitch_Joycon_from_Keyboard.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ std::vector<std::unique_ptr<EditableTableRow>> JoyconFromKeyboardTable::make_def
5050

5151
// Other
5252
ret.emplace_back(make_mapping("-", KeyboardKey::KEY_MINUS, JoyconDeltas{.buttons = BUTTON_MINUS}));
53+
ret.emplace_back(make_mapping("-", KeyboardKey::KEY_KP_MINUS, JoyconDeltas{.buttons = BUTTON_MINUS}));
5354
ret.emplace_back(make_mapping("Capture", KeyboardKey::KEY_INSERT, JoyconDeltas{.buttons = BUTTON_CAPTURE}));
5455

5556
ret.emplace_back(make_mapping("SL", KeyboardKey::KEY_F1, JoyconDeltas{.buttons = BUTTON_LEFT_SL}));
@@ -88,6 +89,7 @@ std::vector<std::unique_ptr<EditableTableRow>> JoyconFromKeyboardTable::make_def
8889

8990
// Other
9091
ret.emplace_back(make_mapping("+", KeyboardKey::KEY_EQUAL, JoyconDeltas{.buttons = BUTTON_PLUS}));
92+
ret.emplace_back(make_mapping("+", KeyboardKey::KEY_KP_PLUS, JoyconDeltas{.buttons = BUTTON_PLUS}));
9193

9294
ret.emplace_back(make_mapping("Home", KeyboardKey::KEY_HOME, JoyconDeltas{.buttons = BUTTON_HOME}));
9395
ret.emplace_back(make_mapping("Home", KeyboardKey::KEY_ESC, JoyconDeltas{.buttons = BUTTON_HOME}));

SerialPrograms/Source/NintendoSwitch/Controllers/Procon/NintendoSwitch_ProController_from_Keyboard.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ std::vector<std::unique_ptr<EditableTableRow>> ProControllerFromKeyboardTable::m
5353
ret.emplace_back(make_mapping("ZR", KeyboardKey::KEY_BACKSLASH, ProControllerDeltas{.buttons = BUTTON_ZR}));
5454

5555
ret.emplace_back(make_mapping("-", KeyboardKey::KEY_MINUS, ProControllerDeltas{.buttons = BUTTON_MINUS}));
56+
ret.emplace_back(make_mapping("-", KeyboardKey::KEY_KP_MINUS, ProControllerDeltas{.buttons = BUTTON_MINUS}));
5657
ret.emplace_back(make_mapping("+", KeyboardKey::KEY_EQUAL, ProControllerDeltas{.buttons = BUTTON_PLUS}));
58+
ret.emplace_back(make_mapping("+", KeyboardKey::KEY_KP_PLUS, ProControllerDeltas{.buttons = BUTTON_PLUS}));
5759

5860
ret.emplace_back(make_mapping("L-Click", KeyboardKey::KEY_C, ProControllerDeltas{.buttons = BUTTON_LCLICK}));
5961
ret.emplace_back(make_mapping("R-Click", KeyboardKey::KEY_KP_0, ProControllerDeltas{.buttons = BUTTON_RCLICK}));

0 commit comments

Comments
 (0)