mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-08 14:42:33 -04:00
A Simple Touchscreen Test App (Debug) (#1292)
* Touchscreen test * Touchscreen test * Touchscreen test * Clang * Moved some Debug menu icons
This commit is contained in:
parent
47e95c0c47
commit
c4df2e66be
2 changed files with 68 additions and 1 deletions
|
@ -321,6 +321,22 @@ class DebugFontsView : public View {
|
|||
NavigationView& nav_;
|
||||
};
|
||||
|
||||
class DebugScreenTest : public View {
|
||||
public:
|
||||
DebugScreenTest(NavigationView& nav);
|
||||
bool on_key(KeyEvent key) override;
|
||||
bool on_encoder(EncoderEvent delta) override;
|
||||
bool on_touch(TouchEvent event) override;
|
||||
uint16_t semirand();
|
||||
void paint(Painter& painter) override;
|
||||
|
||||
private:
|
||||
NavigationView& nav_;
|
||||
Point pen_pos{};
|
||||
Color pen_color{0};
|
||||
int16_t pen_size{10};
|
||||
};
|
||||
|
||||
/*class DebugLCRView : public View {
|
||||
public:
|
||||
DebugLCRView(NavigationView& nav, std::string lcrstring);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue