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
29 lines
904 B
C++
29 lines
904 B
C++
#pragma once
|
|
|
|
#include "input/InputDriver.h"
|
|
|
|
class LinuxInputDriver : public InputDriver
|
|
{
|
|
public:
|
|
LinuxInputDriver(const std::string &kbdDevice, const std::string &ptrDevice);
|
|
void init(void) override;
|
|
void task_handler(void) override;
|
|
virtual ~LinuxInputDriver(void);
|
|
|
|
std::vector<std::string> getKeyboardDevices(void) override;
|
|
std::vector<std::string> getPointerDevices(void) override;
|
|
|
|
std::string getCurrentKeyboardDevice(void) { return keyboardDevice; }
|
|
std::string getCurrentPointerDevice(void) { return pointerDevice; }
|
|
|
|
bool useKeyboardDevice(const std::string &name) override;
|
|
bool usePointerDevice(const std::string &name) override;
|
|
|
|
bool releaseKeyboardDevice(void) override;
|
|
bool releasePointerDevice(void) override;
|
|
|
|
private:
|
|
std::vector<std::string> globVector(const std::string &pattern);
|
|
lv_obj_t *mouse_cursor = nullptr;
|
|
};
|