mirror of https://github.com/meshcore-dev/MeshCore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
475 B
21 lines
475 B
#pragma once
|
|
|
|
#include "DisplayDriver.h"
|
|
|
|
#define KEY_LEFT 0xB4
|
|
#define KEY_UP 0xB5
|
|
#define KEY_DOWN 0xB6
|
|
#define KEY_RIGHT 0xB7
|
|
#define KEY_SELECT 10
|
|
#define KEY_ENTER 13
|
|
#define KEY_BACK 27 // Esc
|
|
|
|
class UIScreen {
|
|
protected:
|
|
UIScreen() { }
|
|
public:
|
|
virtual int render(DisplayDriver& display) =0; // return value is number of millis until next render
|
|
virtual bool handleInput(char c) { return false; }
|
|
virtual void poll() { }
|
|
};
|
|
|
|
|