mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-22 03:30:02 +00:00
19 lines
318 B
C++
19 lines
318 B
C++
#ifndef __KEYBOARD_H__
|
|
#define __KEYBOARD_H__
|
|
|
|
class Keyboard {
|
|
public:
|
|
virtual void up(byte) = 0;
|
|
virtual void down(byte) = 0;
|
|
virtual void reset() = 0;
|
|
|
|
static inline bool isshift(byte scan) {
|
|
return scan == 0x12 || scan == 0x59;
|
|
}
|
|
static inline bool isctrl(byte scan) {
|
|
return scan == 0x14;
|
|
}
|
|
};
|
|
|
|
#endif
|