Skip to content

Commit 0e2c116

Browse files
committed
Added "delete" option to config and README
1 parent 6473726 commit 0e2c116

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ All key names are CASE SENSITIVE!
8383
|DownTenRows|PageDown|Yes|
8484
|UpTenRows|PageUp|Yes|
8585
|CancelSelection|Esc|Yes|
86+
|Delete|Delete|Yes|
8687
|StartSelection|Shift (Hold)|No|
8788
|CopySelection|Ctrl + C|No|
8889
|CutSelection|Ctrl + X|No|

src/ConfigLoader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "util/String.h"
88
#include "platform/Path.h"
99

10-
const std::string DEFAULT_BUTTON_CONFIG = "{\"gameboy\":{\"A\":\"Z\",\"B\":\"X\",\"Up\":\"UpArrow\",\"Down\":\"DownArrow\",\"Left\":\"LeftArrow\",\"Right\":\"RightArrow\",\"Select\":\"Ctrl\",\"Start\":\"Enter\"},\"lsdj\":{\"ScreenUp\":\"W\",\"ScreenDown\":\"S\",\"ScreenLeft\":\"A\",\"ScreenRight\":\"D\",\"DownTenRows\":\"PageDown\",\"UpTenRows\":\"PageUp\",\"CancelSelection\":\"Esc\"}}";
10+
const std::string DEFAULT_BUTTON_CONFIG = "{\"gameboy\":{\"A\":\"Z\",\"B\":\"X\",\"Up\":\"UpArrow\",\"Down\":\"DownArrow\",\"Left\":\"LeftArrow\",\"Right\":\"RightArrow\",\"Select\":\"Ctrl\",\"Start\":\"Enter\",\"Delete\":\"Delete\"},\"lsdj\":{\"ScreenUp\":\"W\",\"ScreenDown\":\"S\",\"ScreenLeft\":\"A\",\"ScreenRight\":\"D\",\"DownTenRows\":\"PageDown\",\"UpTenRows\":\"PageUp\",\"CancelSelection\":\"Esc\"}}";
1111

1212
static void saveButtonConfig(const std::string& path, const tao::json::value& source) {
1313
std::ofstream configOut(path);
@@ -30,7 +30,7 @@ static void loadButtonConfig(tao::json::value& target) {
3030

3131
auto gameboyConfig = fileData.find("gameboy");
3232
auto lsdjConfig = fileData.find("lsdj");
33-
33+
3434
if (!gameboyConfig && !lsdjConfig) {
3535
defaultConfig.at("gameboy").swap(fileData);
3636
target = defaultConfig;

0 commit comments

Comments
 (0)