Files

24 lines
552 B
C++
Raw Permalink Normal View History

2025-01-12 18:08:57 +01:00
#include "input/InputDriver.h"
2024-05-26 00:17:11 +02:00
InputDriver *InputDriver::driver = nullptr;
lv_indev_t *InputDriver::keyboard = nullptr;
lv_indev_t *InputDriver::pointer = nullptr;
lv_indev_t *InputDriver::encoder = nullptr;
2024-12-01 12:43:41 +01:00
lv_indev_t *InputDriver::button = nullptr;
lv_group_t *InputDriver::inputGroup = nullptr;
InputDriver *InputDriver::instance(void)
{
if (!driver)
driver = new InputDriver;
return driver;
}
2024-06-06 09:38:45 +02:00
InputDriver::~InputDriver(void)
{
if (keyboard)
releaseKeyboardDevice();
if (pointer)
releasePointerDevice();
2024-05-25 22:24:52 +02:00
}