mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-26 14:51:52 +03:00
3005f6cd9a
- Move new mouse jiggler into mouse jiggler stealth
- Set stealth jiggler max time default value to 4 min and min value to 1 min
- Various UI fixes
- Merge changes from OFW commit 11d7f53854
([FL-3770, FL-3680] HID App improvements and little extra (3518))
79 lines
2.3 KiB
C
79 lines
2.3 KiB
C
#pragma once
|
|
|
|
#include <furi.h>
|
|
#include <furi_hal_bt.h>
|
|
#include <furi_hal_usb.h>
|
|
#include <furi_hal_usb_hid.h>
|
|
|
|
#include <extra_profiles/hid_profile.h>
|
|
|
|
#include <bt/bt_service/bt.h>
|
|
#include <gui/gui.h>
|
|
#include <gui/view.h>
|
|
#include <gui/view_dispatcher.h>
|
|
#include <gui/scene_manager.h>
|
|
#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"
|
|
#include "views/hid_music_macos.h"
|
|
#include "views/hid_movie.h"
|
|
#include "views/hid_mouse.h"
|
|
#include "views/hid_mouse_clicker.h"
|
|
#include "views/hid_mouse_jiggler.h"
|
|
#include "views/hid_mouse_jiggler_stealth.h"
|
|
#include "views/hid_tiktok.h"
|
|
#include "views/hid_ptt.h"
|
|
#include "views/hid_ptt_menu.h"
|
|
|
|
#include "scenes/hid_scene.h"
|
|
|
|
#define HID_BT_KEYS_STORAGE_NAME ".bt_hid.keys"
|
|
|
|
typedef struct Hid Hid;
|
|
|
|
struct Hid {
|
|
FuriHalBleProfileBase* ble_hid_profile;
|
|
Bt* bt;
|
|
Gui* gui;
|
|
NotificationApp* notifications;
|
|
ViewDispatcher* view_dispatcher;
|
|
SceneManager* scene_manager;
|
|
Submenu* submenu;
|
|
DialogEx* dialog;
|
|
Popup* popup;
|
|
HidKeynote* hid_keynote;
|
|
HidKeyboard* hid_keyboard;
|
|
HidNumpad* hid_numpad;
|
|
HidMedia* hid_media;
|
|
HidMusicMacos* hid_music_macos;
|
|
HidMovie* hid_movie;
|
|
HidMouse* hid_mouse;
|
|
HidMouseClicker* hid_mouse_clicker;
|
|
HidMouseJiggler* hid_mouse_jiggler;
|
|
HidMouseJigglerStealth* hid_mouse_jiggler_stealth;
|
|
HidTikTok* hid_tiktok;
|
|
HidPushToTalk* hid_ptt;
|
|
HidPushToTalkMenu* hid_ptt_menu;
|
|
};
|
|
void bt_hid_remove_pairing(Hid* app);
|
|
|
|
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);
|
|
void hid_hal_mouse_release_all(Hid* instance); |