From 73711c75e630badf275eb0f11cfc4391ac3d2566 Mon Sep 17 00:00:00 2001 From: t0m1o1 <94725994+t0m1o1@users.noreply.github.com> Date: Sun, 17 Jul 2022 10:56:47 +0100 Subject: [PATCH] Update bad_usb_script.c to fix incorrect ALT key const #1406 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: あく --- applications/bad_usb/bad_usb_script.c | 4 ++-- 1 file 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; }