From 008f490c742213b3309dae4b2261a6311c0c554a Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Mon, 22 May 2023 20:29:09 +0100 Subject: [PATCH] Small bt remote shorts fixes --- applications/external/hid_app/views/hid_ytshorts.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/applications/external/hid_app/views/hid_ytshorts.c b/applications/external/hid_app/views/hid_ytshorts.c index 7feee3ac6..b1c152660 100644 --- a/applications/external/hid_app/views/hid_ytshorts.c +++ b/applications/external/hid_app/views/hid_ytshorts.c @@ -185,11 +185,11 @@ static bool hid_ytshorts_input_callback(InputEvent* event, void* context) { } else if(event->type == InputTypeShort) { if(event->key == InputKeyOk) { hid_hal_mouse_press(hid_ytshorts->hid, HID_MOUSE_BTN_LEFT); - furi_delay_ms(50); + furi_delay_ms(25); hid_hal_mouse_release(hid_ytshorts->hid, HID_MOUSE_BTN_LEFT); - furi_delay_ms(50); + furi_delay_ms(100); hid_hal_mouse_press(hid_ytshorts->hid, HID_MOUSE_BTN_LEFT); - furi_delay_ms(50); + furi_delay_ms(25); hid_hal_mouse_release(hid_ytshorts->hid, HID_MOUSE_BTN_LEFT); consumed = true; } else if(event->key == InputKeyDown) { @@ -213,7 +213,6 @@ static bool hid_ytshorts_input_callback(InputEvent* event, void* context) { hid_hal_mouse_press(hid_ytshorts->hid, HID_MOUSE_BTN_LEFT); furi_delay_ms(50); hid_hal_mouse_release(hid_ytshorts->hid, HID_MOUSE_BTN_LEFT); - furi_delay_ms(50); consumed = true; } } else if(event->type == InputTypeLong) {