mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-24 21:43:06 +00:00
39 lines
946 B
C
39 lines
946 B
C
#pragma once
|
|
|
|
#include <furi.h>
|
|
#include <gui/gui.h>
|
|
#include <gui/view.h>
|
|
#include <gui/view_dispatcher.h>
|
|
#include <notification/notification.h>
|
|
|
|
#include <gui/modules/submenu.h>
|
|
#include <gui/modules/dialog_ex.h>
|
|
#include "views/usb_hid_dirpad.h"
|
|
#include "views/usb_hid_keyboard.h"
|
|
#include "views/usb_hid_media.h"
|
|
#include "views/usb_hid_mouse.h"
|
|
#include "views/usb_hid_mouse_jiggler.h"
|
|
|
|
typedef struct {
|
|
Gui* gui;
|
|
NotificationApp* notifications;
|
|
ViewDispatcher* view_dispatcher;
|
|
Submenu* submenu;
|
|
DialogEx* dialog;
|
|
UsbHidDirpad* usb_hid_dirpad;
|
|
UsbHidKeyboard* usb_hid_keyboard;
|
|
UsbHidMedia* usb_hid_media;
|
|
UsbHidMouse* usb_hid_mouse;
|
|
HidMouseJiggler* hid_mouse_jiggler;
|
|
uint32_t view_id;
|
|
} UsbHid;
|
|
|
|
typedef enum {
|
|
UsbHidViewSubmenu,
|
|
UsbHidViewDirpad,
|
|
UsbHidViewKeyboard,
|
|
UsbHidViewMedia,
|
|
UsbHidViewMouse,
|
|
UsbHidViewMouseJiggler,
|
|
UsbHidViewExitConfirm,
|
|
} UsbHidView;
|