Adding F13-F24 function key support to BadUSB (#3468)

* Adding F13-F24 function key support to BadUSB
* Adding F13-F24 function key support to JS version of BadUSB

Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Gabe 2024-03-20 17:45:16 -04:00 committed by GitHub
parent 7d50c4a742
commit 702ab672bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 0 deletions

View file

@ -64,6 +64,18 @@ static const DuckyKey ducky_keys[] = {
{"F10", HID_KEYBOARD_F10}, {"F10", HID_KEYBOARD_F10},
{"F11", HID_KEYBOARD_F11}, {"F11", HID_KEYBOARD_F11},
{"F12", HID_KEYBOARD_F12}, {"F12", HID_KEYBOARD_F12},
{"F13", HID_KEYBOARD_F13},
{"F14", HID_KEYBOARD_F14},
{"F15", HID_KEYBOARD_F15},
{"F16", HID_KEYBOARD_F16},
{"F17", HID_KEYBOARD_F17},
{"F18", HID_KEYBOARD_F18},
{"F19", HID_KEYBOARD_F19},
{"F20", HID_KEYBOARD_F20},
{"F21", HID_KEYBOARD_F21},
{"F22", HID_KEYBOARD_F22},
{"F23", HID_KEYBOARD_F23},
{"F24", HID_KEYBOARD_F24},
}; };
uint16_t ducky_get_keycode_by_name(const char* param) { uint16_t ducky_get_keycode_by_name(const char* param) {

View file

@ -52,6 +52,18 @@ static const struct {
{"F10", HID_KEYBOARD_F10}, {"F10", HID_KEYBOARD_F10},
{"F11", HID_KEYBOARD_F11}, {"F11", HID_KEYBOARD_F11},
{"F12", HID_KEYBOARD_F12}, {"F12", HID_KEYBOARD_F12},
{"F13", HID_KEYBOARD_F13},
{"F14", HID_KEYBOARD_F14},
{"F15", HID_KEYBOARD_F15},
{"F16", HID_KEYBOARD_F16},
{"F17", HID_KEYBOARD_F17},
{"F18", HID_KEYBOARD_F18},
{"F19", HID_KEYBOARD_F19},
{"F20", HID_KEYBOARD_F20},
{"F21", HID_KEYBOARD_F21},
{"F22", HID_KEYBOARD_F22},
{"F23", HID_KEYBOARD_F23},
{"F24", HID_KEYBOARD_F24},
}; };
static bool setup_parse_params(struct mjs* mjs, mjs_val_t arg, FuriHalUsbHidConfig* hid_cfg) { static bool setup_parse_params(struct mjs* mjs, mjs_val_t arg, FuriHalUsbHidConfig* hid_cfg) {