Flipper/Applications/Official/DEV_FW/source/grnch/usbkeyboard/usb_hid.h

40 lines
946 B
C
Raw Normal View History

2022-12-29 06:30:12 +00:00
#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;