Просмотр исходного кода

Update bad_usb_script.c to fix incorrect ALT key const #1406

Co-authored-by: あく <alleteam@gmail.com>
t0m1o1 3 лет назад
Родитель
Сommit
73711c75e6
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      applications/bad_usb/bad_usb_script.c

+ 2 - 2
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;
 }