Files
2025-01-12 18:08:57 +01:00

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();
}