2024-01-05 19:36:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <furi.h>
|
|
|
|
#include <furi_hal_bt.h>
|
|
|
|
#include <furi_hal_usb.h>
|
|
|
|
#include <furi_hal_usb_hid.h>
|
|
|
|
|
2024-02-19 01:33:36 +00:00
|
|
|
#include <extra_profiles/hid_profile.h>
|
|
|
|
|
2024-01-05 19:36:36 +00:00
|
|
|
#include <bt/bt_service/bt.h>
|
|
|
|
#include <gui/gui.h>
|
|
|
|
#include <gui/view.h>
|
|
|
|
#include <gui/view_dispatcher.h>
|
2024-02-19 01:33:36 +00:00
|
|
|
#include <gui/scene_manager.h>
|
2024-01-05 19:36:36 +00:00
|
|
|
#include <notification/notification.h>
|
|
|
|
#include <storage/storage.h>
|
|
|
|
|
|
|
|
#include <gui/modules/submenu.h>
|
|
|
|
#include <gui/modules/dialog_ex.h>
|
|
|
|
#include <gui/modules/popup.h>
|
|
|
|
#include "views/hid_keynote.h"
|
|
|
|
#include "views/hid_keyboard.h"
|
|
|
|
#include "views/hid_numpad.h"
|
|
|
|
#include "views/hid_media.h"
|
2024-01-20 05:48:26 +00:00
|
|
|
#include "views/hid_music_macos.h"
|
2024-01-05 19:36:36 +00:00
|
|
|
#include "views/hid_movie.h"
|
|
|
|
#include "views/hid_mouse.h"
|
|
|
|
#include "views/hid_mouse_clicker.h"
|
|
|
|
#include "views/hid_mouse_jiggler.h"
|
2024-05-15 16:08:10 +00:00
|
|
|
#include "views/hid_mouse_jiggler_stealth.h"
|
2024-02-19 01:33:36 +00:00
|
|
|
#include "views/hid_tiktok.h"
|
2024-01-05 19:36:36 +00:00
|
|
|
#include "views/hid_ptt.h"
|
|
|
|
#include "views/hid_ptt_menu.h"
|
|
|
|
|
2024-02-19 01:33:36 +00:00
|
|
|
#include "scenes/hid_scene.h"
|
|
|
|
|
2024-01-05 19:36:36 +00:00
|
|
|
#define HID_BT_KEYS_STORAGE_NAME ".bt_hid.keys"
|
|
|
|
|
|
|
|
typedef struct Hid Hid;
|
|
|
|
|
|
|
|
struct Hid {
|
2024-02-19 01:33:36 +00:00
|
|
|
FuriHalBleProfileBase* ble_hid_profile;
|
2024-01-05 19:36:36 +00:00
|
|
|
Bt* bt;
|
|
|
|
Gui* gui;
|
|
|
|
NotificationApp* notifications;
|
|
|
|
ViewDispatcher* view_dispatcher;
|
2024-02-19 01:33:36 +00:00
|
|
|
SceneManager* scene_manager;
|
2024-05-15 16:08:10 +00:00
|
|
|
Submenu* submenu;
|
2024-01-05 19:36:36 +00:00
|
|
|
DialogEx* dialog;
|
2024-02-19 01:33:36 +00:00
|
|
|
Popup* popup;
|
2024-01-05 19:36:36 +00:00
|
|
|
HidKeynote* hid_keynote;
|
|
|
|
HidKeyboard* hid_keyboard;
|
|
|
|
HidNumpad* hid_numpad;
|
|
|
|
HidMedia* hid_media;
|
2024-01-20 05:48:26 +00:00
|
|
|
HidMusicMacos* hid_music_macos;
|
2024-01-05 19:36:36 +00:00
|
|
|
HidMovie* hid_movie;
|
|
|
|
HidMouse* hid_mouse;
|
|
|
|
HidMouseClicker* hid_mouse_clicker;
|
|
|
|
HidMouseJiggler* hid_mouse_jiggler;
|
2024-05-15 16:08:10 +00:00
|
|
|
HidMouseJigglerStealth* hid_mouse_jiggler_stealth;
|
2024-02-19 01:33:36 +00:00
|
|
|
HidTikTok* hid_tiktok;
|
2024-01-05 19:36:36 +00:00
|
|
|
HidPushToTalk* hid_ptt;
|
|
|
|
HidPushToTalkMenu* hid_ptt_menu;
|
|
|
|
};
|
2024-02-19 01:33:36 +00:00
|
|
|
void bt_hid_remove_pairing(Hid* app);
|
2024-01-05 19:36:36 +00:00
|
|
|
|
|
|
|
void hid_hal_keyboard_press(Hid* instance, uint16_t event);
|
|
|
|
void hid_hal_keyboard_release(Hid* instance, uint16_t event);
|
|
|
|
void hid_hal_keyboard_release_all(Hid* instance);
|
|
|
|
|
|
|
|
void hid_hal_consumer_key_press(Hid* instance, uint16_t event);
|
|
|
|
void hid_hal_consumer_key_release(Hid* instance, uint16_t event);
|
|
|
|
void hid_hal_consumer_key_release_all(Hid* instance);
|
|
|
|
|
|
|
|
void hid_hal_mouse_move(Hid* instance, int8_t dx, int8_t dy);
|
|
|
|
void hid_hal_mouse_scroll(Hid* instance, int8_t delta);
|
|
|
|
void hid_hal_mouse_press(Hid* instance, uint16_t event);
|
|
|
|
void hid_hal_mouse_release(Hid* instance, uint16_t event);
|
2024-02-19 01:33:36 +00:00
|
|
|
void hid_hal_mouse_release_all(Hid* instance);
|