mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 01:59:13 -04:00
Touch emulation from usb cdc (#1706)
This commit is contained in:
parent
fbe7954f2e
commit
58bf60695d
9 changed files with 52 additions and 4 deletions
|
@ -24,6 +24,8 @@
|
|||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
|
||||
class EventDispatcher;
|
||||
|
||||
namespace portapack {
|
||||
|
||||
class USBSerial {
|
||||
|
@ -32,6 +34,7 @@ class USBSerial {
|
|||
void dispatch();
|
||||
void on_channel_opened();
|
||||
void on_channel_closed();
|
||||
void setEventDispatcher(EventDispatcher* ed) { _eventDispatcher = ed; }
|
||||
|
||||
private:
|
||||
void enable_xtal();
|
||||
|
@ -43,6 +46,8 @@ class USBSerial {
|
|||
|
||||
bool connected{false};
|
||||
bool shell_created{false};
|
||||
|
||||
EventDispatcher* _eventDispatcher = NULL;
|
||||
};
|
||||
|
||||
} // namespace portapack
|
Loading…
Add table
Add a link
Reference in a new issue