Fix BT remote

This commit is contained in:
Willy-JL
2023-05-22 19:36:49 +01:00
parent 11fe5db962
commit 905c134f4d
2 changed files with 5 additions and 7 deletions
+3 -4
View File
@@ -117,8 +117,7 @@ static void hid_tiktok_reset_cursor(HidTikTok* hid_tiktok) {
furi_delay_ms(50);
}
// Move cursor from the corner
hid_hal_mouse_move(hid_tiktok->hid, 40, 120);
hid_hal_mouse_move(hid_tiktok->hid, 0, 120);
hid_hal_mouse_move(hid_tiktok->hid, 20, 120);
furi_delay_ms(50);
}
@@ -190,11 +189,11 @@ static bool hid_tiktok_input_callback(InputEvent* event, void* context) {
hid_hal_mouse_release(hid_tiktok->hid, HID_MOUSE_BTN_LEFT);
consumed = true;
} else if(event->key == InputKeyDown) {
// Swipe to previous video
// Swipe to next video
hid_hal_mouse_scroll(hid_tiktok->hid, 19);
consumed = true;
} else if(event->key == InputKeyUp) {
// Swipe to new video
// Swipe to previous video
hid_hal_mouse_scroll(hid_tiktok->hid, -19);
consumed = true;
} else if(event->key == InputKeyBack) {
+2 -3
View File
@@ -117,8 +117,7 @@ static void hid_ytshorts_reset_cursor(HidYTShorts* hid_ytshorts) {
furi_delay_ms(50);
}
// Move cursor from the corner
hid_hal_mouse_move(hid_ytshorts->hid, 40, 120);
hid_hal_mouse_move(hid_ytshorts->hid, 0, 120);
hid_hal_mouse_move(hid_ytshorts->hid, 20, 120);
furi_delay_ms(50);
}
@@ -194,7 +193,7 @@ static bool hid_ytshorts_input_callback(InputEvent* event, void* context) {
hid_hal_mouse_release(hid_ytshorts->hid, HID_MOUSE_BTN_LEFT);
consumed = true;
} else if(event->key == InputKeyDown) {
// Swipe to new video
// Swipe to next video
hid_hal_mouse_scroll(hid_ytshorts->hid, 6);
hid_hal_mouse_scroll(hid_ytshorts->hid, 8);
hid_hal_mouse_scroll(hid_ytshorts->hid, 10);