- Create `Include/` folder for all main projects - Fix some issues here and there (found while moving things) - All includes are now in `Tactility/` subfolder and must be included with that prefix. This fixes issues with clashing POSIX headers (e.g. `<semaphore.h>` versus Tactility's `Semaphore.h`)
21 lines
448 B
C++
21 lines
448 B
C++
#pragma once
|
|
|
|
#include <Tactility/hal/Touch.h>
|
|
#include <Tactility/TactilityCore.h>
|
|
|
|
class SdlTouch : public tt::hal::Touch {
|
|
private:
|
|
lv_indev_t* _Nullable handle = nullptr;
|
|
|
|
public:
|
|
bool start(lv_display_t* display) override {
|
|
handle = lv_sdl_mouse_create();
|
|
return handle != nullptr;
|
|
}
|
|
|
|
bool stop() override { tt_crash("Not supported"); }
|
|
|
|
lv_indev_t* _Nullable getLvglIndev() override { return handle; }
|
|
};
|
|
|