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>
|
|
|
|
#include <applications/notification/notification.h>
|
|
|
|
|
|
|
|
#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"
|
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;
|
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,
|
2021-12-15 17:39:06 +00:00
|
|
|
BtHidViewExitConfirm,
|
|
|
|
} BtHidView;
|