1
0
mirror of https://github.com/jscrane/r65emu.git synced 2025-02-12 17:32:08 +00:00
r65emu/hw_serial_kbd.h
Stephen Crane 4fa4faa278
Keyboards (#26)
* ps/2 and hardware serial keyboards

* serial keyboard

* add ps2_kbd shim

* hardware_run() and hardware_debug_cpu()

* ...

* ...

* updates

* refactoring

* refactoring

* run instructions
2024-08-22 15:58:45 +01:00

21 lines
377 B
C++

#ifndef __HW_SERIAL_KBD_H__
#define __HW_SERIAL_KBD_H__
/*
* A serial keyboard based around the hardware serial port ("Serial")
* 12 Function keys: ^N .. ^Y inclusive
*/
class hw_serial_kbd: public serial_kbd {
public:
hw_serial_kbd(HardwareSerial &serial): _serial(serial) {}
int read();
bool available();
void reset();
private:
HardwareSerial &_serial;
};
#endif