add usb hid consumer,increase key latency

This commit is contained in:
cuu
2021-05-08 12:38:32 +08:00
parent 7ccbbb5c3e
commit eb44ebdf50
6 changed files with 21 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
#ifndef DEVTERM_H
#define DEVTERM_H
#define KEY_LATENCY 80
#include <USBComposite.h>
typedef struct key_debouncing{
@@ -23,6 +24,7 @@ class DEVTERM {
HIDKeyboard *Keyboard;
HIDMouse *Mouse;
HIDJoystick *Joystick;
HIDConsumer *Consumer;
KEYBOARD_STATE Keyboard_state;
USBCompositeSerial *_Serial;
//if not to use USBCompositeSerial,then use default Serial