Apple1-esp/io.h

26 lines
377 B
C
Raw Normal View History

2014-11-11 17:13:25 +00:00
#ifndef _IO_H
#define _IO_H
2014-11-12 08:28:32 +00:00
class io: public UTFTDisplay, public Keyboard {
2014-11-11 17:13:25 +00:00
public:
io(): UTFTDisplay(256) {}
void operator=(byte);
operator byte();
2014-11-12 08:28:32 +00:00
virtual void reset();
virtual void down(byte scan);
virtual void up(byte scan);
2014-11-11 17:13:25 +00:00
void checkpoint(Stream &);
void restore(Stream &);
private:
void display(byte);
2014-11-12 08:28:32 +00:00
void draw(char, int, int);
2014-11-11 17:13:25 +00:00
2014-11-12 08:28:32 +00:00
bool _shift;
2014-11-11 17:13:25 +00:00
};
#endif