mirror of
https://github.com/meshtastic/firmware.git
synced 2026-06-16 04:30:18 -04:00
* InkHUD touch rework * Applet Switcher * Update ED047TC1.cpp * trunk fix * Custom tip screen for T5s3 * Update TouchScreenImpl1.cpp * Update ED047TC1.cpp * Delete variant.cpp
20 lines
518 B
C++
20 lines
518 B
C++
#pragma once
|
|
#include "TouchScreenBase.h"
|
|
|
|
class TouchScreenImpl1 : public TouchScreenBase
|
|
{
|
|
public:
|
|
TouchScreenImpl1(uint16_t width, uint16_t height, bool (*getTouch)(int16_t *, int16_t *));
|
|
void init(void);
|
|
|
|
protected:
|
|
virtual bool getTouch(int16_t &x, int16_t &y);
|
|
virtual void onEvent(const TouchEvent &event);
|
|
bool fastTapModeEnabled() const override;
|
|
bool longPressEnabled() const override;
|
|
|
|
bool (*_getTouch)(int16_t *, int16_t *);
|
|
};
|
|
|
|
extern TouchScreenImpl1 *touchScreenImpl1;
|