2021-12-15 17:39:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <furi.h>
|
|
|
|
#include <bt/bt_service/bt.h>
|
|
|
|
#include <gui/gui.h>
|
|
|
|
#include <gui/view.h>
|
|
|
|
#include <gui/view_dispatcher.h>
|
2022-09-14 16:11:38 +00:00
|
|
|
#include <notification/notification.h>
|
2021-12-15 17:39:06 +00:00
|
|
|
|
|
|
|
#include <gui/modules/submenu.h>
|
|
|
|
#include <gui/modules/dialog_ex.h>
|
|
|
|
#include "views/bt_hid_keynote.h"
|
2022-07-08 12:36:34 +00:00
|
|
|
#include "views/bt_hid_keyboard.h"
|
2021-12-15 17:39:06 +00:00
|
|
|
#include "views/bt_hid_media.h"
|
2022-07-08 12:36:34 +00:00
|
|
|
#include "views/bt_hid_mouse.h"
|
2022-10-12 02:31:19 +00:00
|
|
|
#include "views/bt_hid_tiktok.h"
|
2021-12-15 17:39:06 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
Bt* bt;
|
|
|
|
Gui* gui;
|
|
|
|
NotificationApp* notifications;
|
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
Submenu* submenu;
|
|
|
|
DialogEx* dialog;
|
|
|
|
BtHidKeynote* bt_hid_keynote;
|
2022-07-08 12:36:34 +00:00
|
|
|
BtHidKeyboard* bt_hid_keyboard;
|
2021-12-15 17:39:06 +00:00
|
|
|
BtHidMedia* bt_hid_media;
|
2022-07-08 12:36:34 +00:00
|
|
|
BtHidMouse* bt_hid_mouse;
|
2022-10-12 02:31:19 +00:00
|
|
|
BtHidTikTok* bt_hid_tiktok;
|
2021-12-15 17:39:06 +00:00
|
|
|
uint32_t view_id;
|
|
|
|
} BtHid;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
BtHidViewSubmenu,
|
|
|
|
BtHidViewKeynote,
|
2022-07-08 12:36:34 +00:00
|
|
|
BtHidViewKeyboard,
|
2021-12-15 17:39:06 +00:00
|
|
|
BtHidViewMedia,
|
2022-07-08 12:36:34 +00:00
|
|
|
BtHidViewMouse,
|
2022-10-12 02:31:19 +00:00
|
|
|
BtHidViewTikTok,
|
2021-12-15 17:39:06 +00:00
|
|
|
BtHidViewExitConfirm,
|
|
|
|
} BtHidView;
|