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