mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-10 22:51:23 +00:00
18 lines
428 B
C
18 lines
428 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 (*_getTouch)(int16_t *, int16_t *);
|
||
|
};
|
||
|
|
||
|
extern TouchScreenImpl1 *touchScreenImpl1;
|