mirror of
https://github.com/jscrane/r65emu.git
synced 2025-02-12 17:32:08 +00:00
* ps/2 and hardware serial keyboards * serial keyboard * add ps2_kbd shim * hardware_run() and hardware_debug_cpu() * ... * ... * updates * refactoring * refactoring * run instructions
21 lines
377 B
C++
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
|