Skip to content

Commit

Permalink
Remove pl_PL keyboard layout make an alias to en_US
Browse files Browse the repository at this point in the history
  • Loading branch information
Tawank committed Jan 29, 2025
1 parent 494192d commit b555cea
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 151 deletions.
1 change: 0 additions & 1 deletion lib/Bad_Usb_Lib/BleKeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ extern const uint8_t KeyboardLayout_sv_SE[];
extern const uint8_t KeyboardLayout_da_DK[];
extern const uint8_t KeyboardLayout_hu_HU[];
extern const uint8_t KeyboardLayout_tr_TR[];
extern const uint8_t KeyboardLayout_pl_PL[];

// Low level key report: up to 6 keys and shift, ctrl etc at once
typedef struct
Expand Down
1 change: 0 additions & 1 deletion lib/Bad_Usb_Lib/CH9329_Keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ extern const uint8_t KeyboardLayout_sv_SE[];
extern const uint8_t KeyboardLayout_da_DK[];
extern const uint8_t KeyboardLayout_hu_HU[];
extern const uint8_t KeyboardLayout_tr_TR[];
extern const uint8_t KeyboardLayout_pl_PL[];

// Low level key report: up to 6 keys and shift, ctrl etc at once
typedef struct CH9329_KeyReport
Expand Down
144 changes: 0 additions & 144 deletions lib/Bad_Usb_Lib/KeyboardLayout_pl_PL.cpp

This file was deleted.

1 change: 0 additions & 1 deletion lib/Bad_Usb_Lib/USBHIDKeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ extern const uint8_t KeyboardLayout_sv_SE[];
extern const uint8_t KeyboardLayout_da_DK[];
extern const uint8_t KeyboardLayout_hu_HU[];
extern const uint8_t KeyboardLayout_tr_TR[];
extern const uint8_t KeyboardLayout_pl_PL[];

// Low level key report: up to 6 keys and shift, ctrl etc at once
typedef struct
Expand Down
4 changes: 2 additions & 2 deletions src/modules/ble/bad_ble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void ble_setup() {
{"da-DK", [=]() { chooseKb_ble(KeyboardLayout_da_DK); }},
{"hu-HU", [=]() { chooseKb_ble(KeyboardLayout_hu_HU); }},
{"tr-TR", [=]() { chooseKb_ble(KeyboardLayout_tr_TR); }},
{"pl-PL", [=]() { chooseKb_ble(KeyboardLayout_pl_PL); }},
{"pl-PL", [=]() { chooseKb_ble(KeyboardLayout_en_US); }},
{"Main Menu", [=]() { returnToMenu=true; }},
};
index=loopOptions(options,false,true,"Keyboard Layout",index); // It will ask for the keyboard each time, but will save the last chosen to be faster
Expand Down Expand Up @@ -361,7 +361,7 @@ void ble_keyboard() {
{"da-DK", [=]() { chooseKb_ble(KeyboardLayout_da_DK); }},
{"hu-HU", [=]() { chooseKb_ble(KeyboardLayout_hu_HU); }},
{"tr-TR", [=]() { chooseKb_ble(KeyboardLayout_tr_TR); }},
{"pl-PL", [=]() { chooseKb_ble(KeyboardLayout_pl_PL); }},
{"pl-PL", [=]() { chooseKb_ble(KeyboardLayout_en_US); }},
{"Main Menu", [=]() { returnToMenu = true; }},
};
loopOptions(options,false,true,"Keyboard Layout");
Expand Down
4 changes: 2 additions & 2 deletions src/modules/others/bad_usb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void usb_setup() {
{"Danish (Denmark)", [=]() { chooseKb(KeyboardLayout_da_DK); }},
{"Hungarian (Hungary)", [=]() { chooseKb(KeyboardLayout_hu_HU); }},
{"Turkish (Turkey)", [=]() { chooseKb(KeyboardLayout_tr_TR); }},
{"Polish (Poland)", [=]() { chooseKb(KeyboardLayout_pl_PL); }},
{"Polish (Poland)", [=]() { chooseKb(KeyboardLayout_en_US); }},
};
loopOptions(options,false,true,"Keyboard Layout");

Expand Down Expand Up @@ -382,7 +382,7 @@ void usb_keyboard() {
{"da-DK", [=]() { chooseKb(KeyboardLayout_da_DK); }},
{"hu-HU", [=]() { chooseKb(KeyboardLayout_hu_HU); }},
{"tr-TR", [=]() { chooseKb(KeyboardLayout_tr_TR); }},
{"pl-PL", [=]() { chooseKb(KeyboardLayout_pl_PL); }},
{"pl-PL", [=]() { chooseKb(KeyboardLayout_en_US); }},
{"Main Menu", [=]() { returnToMenu=true; }},
};

Expand Down

0 comments on commit b555cea

Please sign in to comment.