diff options
author | t0m1o1 <94725994+t0m1o1@users.noreply.github.com> | 2022-07-17 12:56:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 12:56:47 +0300 |
commit | 73711c75e630badf275eb0f11cfc4391ac3d2566 (patch) | |
tree | 5124df4232ac820139b8f09f2090dea6d41d5627 /applications | |
parent | e7c3da1da9bbbd454b1a863e336dce3fbd5e6553 (diff) |
Update bad_usb_script.c to fix incorrect ALT key const #1406
Co-authored-by: あく <alleteam@gmail.com>
Diffstat (limited to 'applications')
-rw-r--r-- | applications/bad_usb/bad_usb_script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/bad_usb/bad_usb_script.c b/applications/bad_usb/bad_usb_script.c index 38b45acd..322a7292 100644 --- a/applications/bad_usb/bad_usb_script.c +++ b/applications/bad_usb/bad_usb_script.c @@ -171,7 +171,7 @@ static bool ducky_altchar(const char* charcode) { FURI_LOG_I(WORKER_TAG, "char %s", charcode); - furi_hal_hid_kb_press(HID_KEYBOARD_L_ALT); + furi_hal_hid_kb_press(KEY_MOD_LEFT_ALT); while(!ducky_is_line_end(charcode[i])) { state = ducky_numpad_press(charcode[i]); @@ -179,7 +179,7 @@ static bool ducky_altchar(const char* charcode) { i++; } - furi_hal_hid_kb_release(HID_KEYBOARD_L_ALT); + furi_hal_hid_kb_release(KEY_MOD_LEFT_ALT); return state; } |