You've already forked meshtastic-device-ui
mirror of
https://github.com/m5stack/meshtastic-device-ui.git
synced 2026-05-20 11:51:03 -07:00
24 lines
552 B
C++
24 lines
552 B
C++
#include "input/InputDriver.h"
|
|
|
|
InputDriver *InputDriver::driver = nullptr;
|
|
lv_indev_t *InputDriver::keyboard = nullptr;
|
|
lv_indev_t *InputDriver::pointer = nullptr;
|
|
lv_indev_t *InputDriver::encoder = nullptr;
|
|
lv_indev_t *InputDriver::button = nullptr;
|
|
lv_group_t *InputDriver::inputGroup = nullptr;
|
|
|
|
InputDriver *InputDriver::instance(void)
|
|
{
|
|
if (!driver)
|
|
driver = new InputDriver;
|
|
return driver;
|
|
}
|
|
|
|
InputDriver::~InputDriver(void)
|
|
{
|
|
if (keyboard)
|
|
releaseKeyboardDevice();
|
|
if (pointer)
|
|
releasePointerDevice();
|
|
}
|