mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
16 lines
405 B
C++
16 lines
405 B
C++
#pragma once
|
|
|
|
#include <esp_lcd_touch.h>
|
|
#include <Tactility/hal/touch/NativeTouch.h>
|
|
|
|
class EspLcdNativeTouch final : public tt::hal::touch::NativeTouch {
|
|
|
|
esp_lcd_touch_handle_t handle;
|
|
|
|
public:
|
|
|
|
EspLcdNativeTouch(esp_lcd_touch_handle_t handle) : handle(handle) {}
|
|
|
|
bool getTouchedPoints(uint16_t* x, uint16_t* y, uint16_t* strength, uint8_t* pointCount, uint8_t maxPointCount) override;
|
|
};
|